blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
7
410
content_id
stringlengths
40
40
detected_licenses
listlengths
0
51
license_type
stringclasses
2 values
repo_name
stringlengths
5
132
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringlengths
4
80
visit_date
timestamp[us]
revision_date
timestamp[us]
committer_date
timestamp[us]
github_id
int64
5.85k
684M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
22 values
gha_event_created_at
timestamp[us]
gha_created_at
timestamp[us]
gha_language
stringclasses
132 values
src_encoding
stringclasses
34 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
2 classes
length_bytes
int64
3
9.45M
extension
stringclasses
28 values
content
stringlengths
3
9.45M
authors
listlengths
1
1
author_id
stringlengths
0
352
3c7e7fba154e4e5bf3d95f319381e60d296902ea
27cbebee6917915a03a4059e9401dcdfe4ad2c43
/app/src/main/java/com/zbam/tajer/data/pref/AppDataManager.java
86e4a1f56c3d06ef0cfe9f229a72b0e807a6c8e5
[]
no_license
bazoobandi/TajerAndroid
180fb58184700278e6a0394f846d24ae1e6ad7c0
065e9bb2135fcd7d1bf22b11478a5738b0849692
refs/heads/master
2020-12-21T07:29:11.239899
2020-04-18T17:35:22
2020-04-18T17:35:22
236,354,822
0
0
null
null
null
null
UTF-8
Java
false
false
2,201
java
package com.zbam.tajer.data.pref; import android.content.Context; import javax.inject.Inject; /** * Created by z.bazoubandi on 7/21/2018. */ public class AppDataManager implements DataManager{ private final Context mContext ; private final PreferencesHelper mPreferencesHelper; //private ConfigData configData ; @Inject public AppDataManager(Context context, PreferencesHelper preferencesHelper) { mContext = context; mPreferencesHelper = preferencesHelper; } @Override public String getUsername() { return null; } @Override public void setUsername(String username) { } @Override public String getPassword() { return null; } @Override public void setPassword(String password) { } @Override public String getSecurityKey() { return null; } @Override public void setSecurityKey(String securityKey) { } @Override public String getCityId() { return mPreferencesHelper.getCityId(); } @Override public void setCityId(String cityId) { mPreferencesHelper.setCityId(cityId); } @Override public String getCityName() { return mPreferencesHelper.getCityName(); } @Override public void setCityName(String cityName) { mPreferencesHelper.setCityName(cityName); } @Override public String getDefaultLanguage() { return mPreferencesHelper.getDefaultLanguage(); } @Override public void setDefaultLanguage(String defaultLang) { mPreferencesHelper.setDefaultLanguage(defaultLang); setIsDefaultLanguageSet(true); } @Override public void setIsDefaultLanguageSet(boolean b) { mPreferencesHelper.setIsDefaultLanguageSet(b); } @Override public boolean isDefaultLanguageSet() { return mPreferencesHelper.isDefaultLanguageSet(); } @Override public void updateCity(String cityId, String cityName) { setCityId(cityId); setCityName(cityName); } }
[ "abolfazl.mohiti@gmail.com" ]
abolfazl.mohiti@gmail.com
9938936423a2a215125c82d1af5158e842009c72
5799fd4dc9fea597551acb07d221ab45d39ca445
/WeatherTestFighting/app/src/main/java/com/example/user/weathertestfighting/dongmid4.java
9e3db97f8cfea0ce5a9f56ddd2cc0fa8cdea906e
[]
no_license
syw78/Android
92152896974ba180e48141ab7f4faad36a610bcc
d2fbec948e127ac0f39251f668f21e6383e507ee
refs/heads/master
2020-08-31T11:45:23.637576
2019-12-26T09:02:12
2019-12-26T09:02:12
218,682,246
0
0
null
null
null
null
UTF-8
Java
false
false
2,056
java
package com.example.user.weathertestfighting; import android.content.Intent; import android.support.v7.app.AppCompatActivity; import android.os.Bundle; import android.view.View; import android.widget.Button; public class dongmid4 extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.dongmid4); Button button11 = findViewById(R.id.button11); Button button2 = findViewById(R.id.button2); Button button3 = findViewById(R.id.button3); Button button4 = findViewById(R.id.button4); Button button5 = findViewById(R.id.button5); Button button6 = findViewById(R.id.button6); Button button7 = findViewById(R.id.button7); Button button8 = findViewById(R.id.button8); Button button9 = findViewById(R.id.button9); Button button10 = findViewById(R.id.button10); button2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(getApplicationContext(), dongmid44.class); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivityForResult(intent, 1000); } }); button3.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(getApplicationContext(), dongmid.class); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivityForResult(intent, 1000); } }); button4.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View view) { Intent intent = new Intent(getApplicationContext(), MainActivity.class); intent.setFlags(Intent.FLAG_ACTIVITY_SINGLE_TOP); startActivityForResult(intent, 1000); } }); } }
[ "tjdusdn78@naver.com" ]
tjdusdn78@naver.com
204728d1dee9ead5fa1d9650459518914fb4c384
93bf703867aacb4be22d451c3acde2952f6d1dd5
/src/methods/Method.java
0b99842f3ea9508cb9532322b853ebbe23d0e95a
[]
no_license
artificialuse/BigDataWeather
87db9b61b20716d3ffe77c0fbdd4201e7bd2ad63
bdc6980aaffaa684d51359c28354852244631bfa
refs/heads/master
2020-03-18T22:30:40.435460
2017-01-20T01:35:48
2017-01-20T01:35:48
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,449
java
package methods; import java.awt.AlphaComposite; import java.awt.Graphics2D; import java.awt.Image; import java.awt.image.BufferedImage; import java.util.Random; import java.util.TreeMap; /** * the method that are used pretty frequently in other classes * @author Leo * */ public class Method { public static Random r = new Random(); /**a method that will produce a number based on the start number and end number * * @param start the start number * @param end the end number * @return any number in between the start and the end */ public static int random(int start, int end){ return r.nextInt(end-start)+start; //calculate the number } /**a method that will change rgb value to an int * * @param Red the red value of a color * @param Green the green value of a color * @param Blue the blue value of a color * @return integer that is converted based on the color */ public static int getIntFromColor(int Red, int Green, int Blue){ Red = (Red << 16) & 0x00FF0000; //Shift red 16-bits and mask out other stuff Green = (Green << 8) & 0x0000FF00; //Shift Green 8-bits and mask out other stuff Blue = Blue & 0x000000FF; //Mask out anything not blue. return 0xFF000000 | Red | Green | Blue; //0xFF000000 for 100% Alpha. Bitwise OR everything together. } /**a method that will change an image to a buffered image * * @param img the Image needed to be changed * @return the same image but to a buffered image type */ public static BufferedImage toBufferedImage(Image img){ if (img instanceof BufferedImage) //if the image is already a bufferedImage return (BufferedImage) img; //just return it BufferedImage bimage = new BufferedImage(img.getWidth(null), img.getHeight(null), BufferedImage.TYPE_INT_ARGB); //create an empty buffered image Graphics2D bGr = bimage.createGraphics(); //get the graphics for the buffered image bGr.drawImage(img, 0, 0, null); //draw the image into the buffered image bGr.dispose(); //dispose the graphics return bimage; // Return the buffered image } /**find the average based on the arrayList and the key date * * @param temp the treeMap of temperatures * @param specificDate the String of a specific Date * @return //return the average of that selected date */ public static float findAvg(TreeMap<String, Float> temp, String specificDate){ //find the average of a specific date based on the temperature treeMap float total = 0f; //initialize the total to be 0 int counter = 0; //initialize the counter to be 0 for(String date: temp.keySet()){ //for all the date available if(date.startsWith(specificDate)){ //if the date start will the specific date total+=temp.get(date); //add the total to the value on each day counter++; //increment the counter } } return total/counter; //return the average which is total/counter } /** * the method that will return a composite based on the float value passed it, it is used to set the transparency of the component drawn * @param alpha the transparency of the graphics (1 to be opaque, 0 to be transparent) * @return return the AlphaComposite that can be used to change the transparency of the graphics */ public static AlphaComposite makeTransparent(float alpha){ int type = AlphaComposite.SRC_OVER; //set the type return (AlphaComposite.getInstance(type,alpha)); //return the alphaComposite based on the float value and the type } }
[ "yuner25699@gmail.com" ]
yuner25699@gmail.com
3b3ea22f1015f87ceb3db657797529839d8b9608
5df376fe22b7163e4d63b0984ddf049f1efbc6bb
/src/main/java/com/truelogic/java/clase/Animal.java
c25df5b2d9d689912487959a81dd3bacba0823c1
[]
no_license
fishkel-truelogic/java.clase
cafe9317810d58fd70c7b453041f4e61579ae149
86a4d9bbc2e275acb8eac4036930fa8446605202
refs/heads/master
2021-01-10T22:03:58.084018
2014-08-17T18:45:27
2014-08-17T18:45:27
null
0
0
null
null
null
null
UTF-8
Java
false
false
484
java
package com.truelogic.java.clase; public abstract class Animal { private int energia; private String nombre; public Animal(String nombre) { this.nombre = nombre; } public int getEnergia() { return energia; } public void setEnergia(int energia) { this.energia = energia; } public void come(int bananas) { setEnergia(bananas * 6); } public String getNombre() { return nombre; } public void setNombre(String nombre) { this.nombre = nombre; } }
[ "lfishkel@truelgicsoftware.com" ]
lfishkel@truelgicsoftware.com
9e5cba492b48072de0c403acb40f63889fd2807d
895fcd45cad1f4cd39a940a58ea0aafea9cc040a
/app/src/androidTest/java/com/rcacao/geolocation/ExampleInstrumentedTest.java
5eb12487def237109ae8398da4c3624318306d62
[]
no_license
renancacao/android_geolocation
860e85322c8e4a9c813d8d34fbddcdec2e1865df
3ae89a4fe75571412ca5b86d4df4231ac09dce3e
refs/heads/master
2020-04-22T13:25:47.299725
2019-02-13T03:18:07
2019-02-13T03:18:07
170,409,126
0
0
null
null
null
null
UTF-8
Java
false
false
728
java
package com.rcacao.geolocation; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.rcacao.geolocation", appContext.getPackageName()); } }
[ "rcacao10@gmail.com" ]
rcacao10@gmail.com
1d690dd5647614732213864ef7644dfdb75a0df3
8aa3645d4a0b3e8503971ccabab51d9784bc83d7
/app/src/main/java/com/server18/relaxationapp/AudioPlayerActivity.java
226b4cda33ded1fcac604702400502bad2b58651
[]
no_license
deepaksachan111/RelaAppAudioSelectediteminlistviewSendotherActivity
c1c7d70e76707af0cb2361d0a1538a9d56050e2f
86044420910a9f3cb6006b84e0e0b3cd49c1dff4
refs/heads/master
2021-01-24T10:29:33.492174
2016-10-13T11:54:53
2016-10-13T11:54:53
69,730,459
0
0
null
null
null
null
UTF-8
Java
false
false
6,943
java
package com.server18.relaxationapp; import android.app.Activity; import android.media.MediaPlayer; import android.net.Uri; import android.os.Bundle; import android.os.Handler; import android.view.View; import android.widget.Button; import android.widget.ImageView; import android.widget.SeekBar; import android.widget.TextView; import android.widget.Toast; import java.util.concurrent.TimeUnit; public class AudioPlayerActivity extends Activity { private Button b1,b2,b3,b4; private ImageView iv; private MediaPlayer mediaPlayer; private double startTime = 0; private double finalTime = 0; private Handler myHandler = new Handler();; private int forwardTime = 5000; private int backwardTime = 5000; private SeekBar seekbar; private TextView tx1,tx2,tx3; ImageView imageView1; public static int oneTimeOnly = 0; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_audio_player); imageView1 = (ImageView)findViewById(R.id.slideimage); findViewById(R.id.back_music_list).setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { finish(); mediaPlayer.stop(); oneTimeOnly = 0; myHandler.removeCallbacks(UpdateSongTime); seekbar.setMax(0); } }); final int[] imageArray = { R.drawable.nature1, R.drawable.nature2, R.drawable.nature3, R.drawable.images4, R.drawable.image5, R.drawable.image6, R.drawable.image7, }; final Handler handler = new Handler(); final Runnable runnable = new Runnable() { int i = 0; public void run() { imageView1.setImageResource(imageArray[i]); i++; if (i > imageArray.length - 1) { i = 0; } handler.postDelayed(this, 2000); } }; b1 = (Button) findViewById(R.id.btn_forword); b2 = (Button) findViewById(R.id.button2); b3=(Button)findViewById(R.id.btn_play); b4=(Button)findViewById(R.id.btn_backword); iv=(ImageView)findViewById(R.id.imageView); tx1=(TextView)findViewById(R.id.textView2); tx2=(TextView)findViewById(R.id.textView3); tx3=(TextView)findViewById(R.id.textView4); tx3.setText("Song.mp3"); String s = getIntent().getStringExtra("S"); mediaPlayer = MediaPlayer.create(this, Uri.parse("storage/sdcard0/new folder/"+s)); seekbar=(SeekBar)findViewById(R.id.seekBar); seekbar.setClickable(false); b2.setEnabled(false); b3.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(getApplicationContext(), "Playing sound", Toast.LENGTH_SHORT).show(); mediaPlayer.start(); finalTime = mediaPlayer.getDuration(); startTime = mediaPlayer.getCurrentPosition(); handler.postDelayed(runnable, 2000); if (oneTimeOnly == 0) { seekbar.setMax((int) finalTime); oneTimeOnly = 1; } tx2.setText(String.format("%d min, %d sec", TimeUnit.MILLISECONDS.toMinutes((long) finalTime), TimeUnit.MILLISECONDS.toSeconds((long) finalTime) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes((long) finalTime))) ); tx1.setText(String.format("%d min, %d sec", TimeUnit.MILLISECONDS.toMinutes((long) startTime), TimeUnit.MILLISECONDS.toSeconds((long) startTime) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes((long) startTime))) ); seekbar.setProgress((int)startTime); myHandler.postDelayed(UpdateSongTime,100); b2.setEnabled(true); b3.setEnabled(false); } }); b2.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Toast.makeText(getApplicationContext(), "Pausing sound",Toast.LENGTH_SHORT).show(); mediaPlayer.pause(); b2.setEnabled(false); b3.setEnabled(true); } }); b1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int temp = (int)startTime; if((temp+forwardTime)<=finalTime){ startTime = startTime + forwardTime; mediaPlayer.seekTo((int) startTime); Toast.makeText(getApplicationContext(),"You have Jumped forward 5 seconds",Toast.LENGTH_SHORT).show(); } else{ Toast.makeText(getApplicationContext(),"Cannot jump forward 5 seconds",Toast.LENGTH_SHORT).show(); } } }); b4.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { int temp = (int)startTime; if((temp-backwardTime)>0){ startTime = startTime - backwardTime; mediaPlayer.seekTo((int) startTime); Toast.makeText(getApplicationContext(),"You have Jumped backward 5 seconds",Toast.LENGTH_SHORT).show(); } else{ Toast.makeText(getApplicationContext(),"Cannot jump backward 5 seconds",Toast.LENGTH_SHORT).show(); } } }); } private Runnable UpdateSongTime = new Runnable() { public void run() { startTime = mediaPlayer.getCurrentPosition(); tx1.setText(String.format("%d min, %d sec", TimeUnit.MILLISECONDS.toMinutes((long) startTime), TimeUnit.MILLISECONDS.toSeconds((long) startTime) - TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS. toMinutes((long) startTime))) ); seekbar.setProgress((int)startTime); myHandler.postDelayed(this, 100); } }; @Override public void onBackPressed() { super.onBackPressed(); mediaPlayer.stop(); oneTimeOnly = 0; myHandler.removeCallbacks(UpdateSongTime); seekbar.setMax(0); } }
[ "zafarquaere@gmail.com" ]
zafarquaere@gmail.com
413cdc53197215e6b262142ceb68b4a5a1b6df76
f4380e87c8d14e6ce87f094d8f86d213d4d32f42
/app/src/androidTest/java/com/example/user/testingapplication/ExampleInstrumentedTest.java
a35ed221ae6d0c5bb37e10ba37c7e7e55c91780a
[]
no_license
Jiaenong/TestingApplication
8faa0d7a49d9446b6107e9c18dcf47481370969f
6f44a7fd099660fbf680bd7918085a198380346f
refs/heads/master
2020-03-18T14:54:08.603702
2018-05-25T15:30:13
2018-05-25T15:30:13
134,874,072
0
0
null
null
null
null
UTF-8
Java
false
false
754
java
package com.example.user.testingapplication; import android.content.Context; import android.support.test.InstrumentationRegistry; import android.support.test.runner.AndroidJUnit4; import org.junit.Test; import org.junit.runner.RunWith; import static org.junit.Assert.*; /** * Instrumented test, which will execute on an Android device. * * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> */ @RunWith(AndroidJUnit4.class) public class ExampleInstrumentedTest { @Test public void useAppContext() { // Context of the app under test. Context appContext = InstrumentationRegistry.getTargetContext(); assertEquals("com.example.user.testingapplication", appContext.getPackageName()); } }
[ "ongje-pa15@student.tarc.edu.my" ]
ongje-pa15@student.tarc.edu.my
f565cc389c2030efe9608ea414f47287a4aa07fc
6512fe2b59ca04cc21fb45dad2d21a7dff4970b2
/app/build/generated/source/r/debug/com/google/android/gms/safetynet/R.java
1aa4ed07b345405dca4f147252fd559e693c2ac2
[]
no_license
rgberou/escmobile
08aa711986e7d2550b7630d79d0ff9775dd6784e
8c353ff7ed27d88f197c8e56bdd897d52f8a82d8
refs/heads/master
2021-01-10T05:10:52.482586
2016-02-17T04:11:04
2016-02-17T04:11:04
48,712,053
0
0
null
null
null
null
UTF-8
Java
false
false
19,567
java
/* AUTO-GENERATED FILE. DO NOT MODIFY. * * This class was automatically generated by the * aapt tool from the resource data it found. It * should not be modified by hand. */ package com.google.android.gms.safetynet; public final class R { public static final class attr { public static final int adSize = 0x7f010026; public static final int adSizes = 0x7f010027; public static final int adUnitId = 0x7f010028; public static final int ambientEnabled = 0x7f010053; public static final int appTheme = 0x7f0100f3; public static final int buttonSize = 0x7f010069; public static final int buyButtonAppearance = 0x7f0100fa; public static final int buyButtonHeight = 0x7f0100f7; public static final int buyButtonText = 0x7f0100f9; public static final int buyButtonWidth = 0x7f0100f8; public static final int cameraBearing = 0x7f010044; public static final int cameraTargetLat = 0x7f010045; public static final int cameraTargetLng = 0x7f010046; public static final int cameraTilt = 0x7f010047; public static final int cameraZoom = 0x7f010048; public static final int circleCrop = 0x7f010042; public static final int colorScheme = 0x7f01006a; public static final int environment = 0x7f0100f4; public static final int fragmentMode = 0x7f0100f6; public static final int fragmentStyle = 0x7f0100f5; public static final int imageAspectRatio = 0x7f010041; public static final int imageAspectRatioAdjust = 0x7f010040; public static final int liteMode = 0x7f010049; public static final int mapType = 0x7f010043; public static final int maskedWalletDetailsBackground = 0x7f0100fd; public static final int maskedWalletDetailsButtonBackground = 0x7f0100ff; public static final int maskedWalletDetailsButtonTextAppearance = 0x7f0100fe; public static final int maskedWalletDetailsHeaderTextAppearance = 0x7f0100fc; public static final int maskedWalletDetailsLogoImageType = 0x7f010101; public static final int maskedWalletDetailsLogoTextColor = 0x7f010100; public static final int maskedWalletDetailsTextAppearance = 0x7f0100fb; public static final int scopeUris = 0x7f01006b; public static final int uiCompass = 0x7f01004a; public static final int uiMapToolbar = 0x7f010052; public static final int uiRotateGestures = 0x7f01004b; public static final int uiScrollGestures = 0x7f01004c; public static final int uiTiltGestures = 0x7f01004d; public static final int uiZoomControls = 0x7f01004e; public static final int uiZoomGestures = 0x7f01004f; public static final int useViewLifecycle = 0x7f010050; public static final int windowTransitionStyle = 0x7f010034; public static final int zOrderOnTop = 0x7f010051; } public static final class color { public static final int common_action_bar_splitter = 0x7f0d0013; public static final int common_google_signin_btn_text_dark = 0x7f0d0063; public static final int common_google_signin_btn_text_dark_default = 0x7f0d0014; public static final int common_google_signin_btn_text_dark_disabled = 0x7f0d0015; public static final int common_google_signin_btn_text_dark_focused = 0x7f0d0016; public static final int common_google_signin_btn_text_dark_pressed = 0x7f0d0017; public static final int common_google_signin_btn_text_light = 0x7f0d0064; public static final int common_google_signin_btn_text_light_default = 0x7f0d0018; public static final int common_google_signin_btn_text_light_disabled = 0x7f0d0019; public static final int common_google_signin_btn_text_light_focused = 0x7f0d001a; public static final int common_google_signin_btn_text_light_pressed = 0x7f0d001b; public static final int common_plus_signin_btn_text_dark = 0x7f0d0065; public static final int common_plus_signin_btn_text_dark_default = 0x7f0d001c; public static final int common_plus_signin_btn_text_dark_disabled = 0x7f0d001d; public static final int common_plus_signin_btn_text_dark_focused = 0x7f0d001e; public static final int common_plus_signin_btn_text_dark_pressed = 0x7f0d001f; public static final int common_plus_signin_btn_text_light = 0x7f0d0066; public static final int common_plus_signin_btn_text_light_default = 0x7f0d0020; public static final int common_plus_signin_btn_text_light_disabled = 0x7f0d0021; public static final int common_plus_signin_btn_text_light_focused = 0x7f0d0022; public static final int common_plus_signin_btn_text_light_pressed = 0x7f0d0023; public static final int wallet_bright_foreground_disabled_holo_light = 0x7f0d004c; public static final int wallet_bright_foreground_holo_dark = 0x7f0d004d; public static final int wallet_bright_foreground_holo_light = 0x7f0d004e; public static final int wallet_dim_foreground_disabled_holo_dark = 0x7f0d004f; public static final int wallet_dim_foreground_holo_dark = 0x7f0d0050; public static final int wallet_dim_foreground_inverse_disabled_holo_dark = 0x7f0d0051; public static final int wallet_dim_foreground_inverse_holo_dark = 0x7f0d0052; public static final int wallet_highlighted_text_holo_dark = 0x7f0d0053; public static final int wallet_highlighted_text_holo_light = 0x7f0d0054; public static final int wallet_hint_foreground_holo_dark = 0x7f0d0055; public static final int wallet_hint_foreground_holo_light = 0x7f0d0056; public static final int wallet_holo_blue_light = 0x7f0d0057; public static final int wallet_link_text_light = 0x7f0d0058; public static final int wallet_primary_text_holo_light = 0x7f0d0069; public static final int wallet_secondary_text_holo_dark = 0x7f0d006a; } public static final class drawable { public static final int cast_ic_notification_0 = 0x7f02004c; public static final int cast_ic_notification_1 = 0x7f02004d; public static final int cast_ic_notification_2 = 0x7f02004e; public static final int cast_ic_notification_connecting = 0x7f02004f; public static final int cast_ic_notification_on = 0x7f020050; public static final int common_full_open_on_phone = 0x7f020051; public static final int common_google_signin_btn_icon_dark = 0x7f020052; public static final int common_google_signin_btn_icon_dark_disabled = 0x7f020053; public static final int common_google_signin_btn_icon_dark_focused = 0x7f020054; public static final int common_google_signin_btn_icon_dark_normal = 0x7f020055; public static final int common_google_signin_btn_icon_dark_pressed = 0x7f020056; public static final int common_google_signin_btn_icon_light = 0x7f020057; public static final int common_google_signin_btn_icon_light_disabled = 0x7f020058; public static final int common_google_signin_btn_icon_light_focused = 0x7f020059; public static final int common_google_signin_btn_icon_light_normal = 0x7f02005a; public static final int common_google_signin_btn_icon_light_pressed = 0x7f02005b; public static final int common_google_signin_btn_text_dark = 0x7f02005c; public static final int common_google_signin_btn_text_dark_disabled = 0x7f02005d; public static final int common_google_signin_btn_text_dark_focused = 0x7f02005e; public static final int common_google_signin_btn_text_dark_normal = 0x7f02005f; public static final int common_google_signin_btn_text_dark_pressed = 0x7f020060; public static final int common_google_signin_btn_text_light = 0x7f020061; public static final int common_google_signin_btn_text_light_disabled = 0x7f020062; public static final int common_google_signin_btn_text_light_focused = 0x7f020063; public static final int common_google_signin_btn_text_light_normal = 0x7f020064; public static final int common_google_signin_btn_text_light_pressed = 0x7f020065; public static final int common_ic_googleplayservices = 0x7f020066; public static final int common_plus_signin_btn_icon_dark = 0x7f020067; public static final int common_plus_signin_btn_icon_dark_disabled = 0x7f020068; public static final int common_plus_signin_btn_icon_dark_focused = 0x7f020069; public static final int common_plus_signin_btn_icon_dark_normal = 0x7f02006a; public static final int common_plus_signin_btn_icon_dark_pressed = 0x7f02006b; public static final int common_plus_signin_btn_icon_light = 0x7f02006c; public static final int common_plus_signin_btn_icon_light_disabled = 0x7f02006d; public static final int common_plus_signin_btn_icon_light_focused = 0x7f02006e; public static final int common_plus_signin_btn_icon_light_normal = 0x7f02006f; public static final int common_plus_signin_btn_icon_light_pressed = 0x7f020070; public static final int common_plus_signin_btn_text_dark = 0x7f020071; public static final int common_plus_signin_btn_text_dark_disabled = 0x7f020072; public static final int common_plus_signin_btn_text_dark_focused = 0x7f020073; public static final int common_plus_signin_btn_text_dark_normal = 0x7f020074; public static final int common_plus_signin_btn_text_dark_pressed = 0x7f020075; public static final int common_plus_signin_btn_text_light = 0x7f020076; public static final int common_plus_signin_btn_text_light_disabled = 0x7f020077; public static final int common_plus_signin_btn_text_light_focused = 0x7f020078; public static final int common_plus_signin_btn_text_light_normal = 0x7f020079; public static final int common_plus_signin_btn_text_light_pressed = 0x7f02007a; public static final int ic_plusone_medium_off_client = 0x7f02009d; public static final int ic_plusone_small_off_client = 0x7f02009e; public static final int ic_plusone_standard_off_client = 0x7f02009f; public static final int ic_plusone_tall_off_client = 0x7f0200a0; public static final int powered_by_google_dark = 0x7f0200b3; public static final int powered_by_google_light = 0x7f0200b4; } public static final class id { public static final int adjust_height = 0x7f0e001d; public static final int adjust_width = 0x7f0e001e; public static final int android_pay = 0x7f0e0047; public static final int android_pay_dark = 0x7f0e003e; public static final int android_pay_light = 0x7f0e003f; public static final int android_pay_light_with_border = 0x7f0e0040; public static final int auto = 0x7f0e002a; public static final int book_now = 0x7f0e0037; public static final int buyButton = 0x7f0e0034; public static final int buy_now = 0x7f0e0038; public static final int buy_with = 0x7f0e0039; public static final int buy_with_google = 0x7f0e003a; public static final int cast_notification_id = 0x7f0e0004; public static final int classic = 0x7f0e0041; public static final int dark = 0x7f0e002b; public static final int donate_with = 0x7f0e003b; public static final int donate_with_google = 0x7f0e003c; public static final int google_wallet_classic = 0x7f0e0042; public static final int google_wallet_grayscale = 0x7f0e0043; public static final int google_wallet_monochrome = 0x7f0e0044; public static final int grayscale = 0x7f0e0045; public static final int holo_dark = 0x7f0e002e; public static final int holo_light = 0x7f0e002f; public static final int hybrid = 0x7f0e001f; public static final int icon_only = 0x7f0e0027; public static final int light = 0x7f0e002c; public static final int logo_only = 0x7f0e003d; public static final int match_parent = 0x7f0e0036; public static final int monochrome = 0x7f0e0046; public static final int none = 0x7f0e000f; public static final int normal = 0x7f0e000b; public static final int production = 0x7f0e0030; public static final int sandbox = 0x7f0e0031; public static final int satellite = 0x7f0e0020; public static final int selectionDetails = 0x7f0e0035; public static final int slide = 0x7f0e0019; public static final int standard = 0x7f0e0028; public static final int strict_sandbox = 0x7f0e0032; public static final int terrain = 0x7f0e0021; public static final int test = 0x7f0e0033; public static final int wide = 0x7f0e0029; public static final int wrap_content = 0x7f0e002d; } public static final class integer { public static final int google_play_services_version = 0x7f0b0004; } public static final class raw { public static final int gtm_analytics = 0x7f060000; } public static final class string { public static final int accept = 0x7f07003b; public static final int auth_google_play_services_client_facebook_display_name = 0x7f07003f; public static final int auth_google_play_services_client_google_display_name = 0x7f070040; public static final int cast_notification_connected_message = 0x7f070041; public static final int cast_notification_connecting_message = 0x7f070042; public static final int cast_notification_disconnect = 0x7f070043; public static final int common_android_wear_notification_needs_update_text = 0x7f070013; public static final int common_android_wear_update_text = 0x7f070014; public static final int common_android_wear_update_title = 0x7f070015; public static final int common_google_play_services_api_unavailable_text = 0x7f070016; public static final int common_google_play_services_enable_button = 0x7f070017; public static final int common_google_play_services_enable_text = 0x7f070018; public static final int common_google_play_services_enable_title = 0x7f070019; public static final int common_google_play_services_error_notification_requested_by_msg = 0x7f07001a; public static final int common_google_play_services_install_button = 0x7f07001b; public static final int common_google_play_services_install_text_phone = 0x7f07001c; public static final int common_google_play_services_install_text_tablet = 0x7f07001d; public static final int common_google_play_services_install_title = 0x7f07001e; public static final int common_google_play_services_invalid_account_text = 0x7f07001f; public static final int common_google_play_services_invalid_account_title = 0x7f070020; public static final int common_google_play_services_needs_enabling_title = 0x7f070021; public static final int common_google_play_services_network_error_text = 0x7f070022; public static final int common_google_play_services_network_error_title = 0x7f070023; public static final int common_google_play_services_notification_needs_update_title = 0x7f070024; public static final int common_google_play_services_notification_ticker = 0x7f070025; public static final int common_google_play_services_sign_in_failed_text = 0x7f070026; public static final int common_google_play_services_sign_in_failed_title = 0x7f070027; public static final int common_google_play_services_unknown_issue = 0x7f070028; public static final int common_google_play_services_unsupported_text = 0x7f070029; public static final int common_google_play_services_unsupported_title = 0x7f07002a; public static final int common_google_play_services_update_button = 0x7f07002b; public static final int common_google_play_services_update_text = 0x7f07002c; public static final int common_google_play_services_update_title = 0x7f07002d; public static final int common_google_play_services_updating_text = 0x7f07002e; public static final int common_google_play_services_updating_title = 0x7f07002f; public static final int common_open_on_phone = 0x7f070030; public static final int common_signin_button_text = 0x7f070031; public static final int common_signin_button_text_long = 0x7f070032; public static final int create_calendar_message = 0x7f070044; public static final int create_calendar_title = 0x7f070045; public static final int decline = 0x7f070046; public static final int store_picture_message = 0x7f070051; public static final int store_picture_title = 0x7f070052; public static final int wallet_buy_button_place_holder = 0x7f07003a; } public static final class style { public static final int Theme_IAPTheme = 0x7f0a00ef; public static final int WalletFragmentDefaultButtonTextAppearance = 0x7f0a00f7; public static final int WalletFragmentDefaultDetailsHeaderTextAppearance = 0x7f0a00f8; public static final int WalletFragmentDefaultDetailsTextAppearance = 0x7f0a00f9; public static final int WalletFragmentDefaultStyle = 0x7f0a00fa; } public static final class styleable { public static final int[] AdsAttrs = { 0x7f010026, 0x7f010027, 0x7f010028 }; public static final int AdsAttrs_adSize = 0; public static final int AdsAttrs_adSizes = 1; public static final int AdsAttrs_adUnitId = 2; public static final int[] CustomWalletTheme = { 0x7f010034 }; public static final int CustomWalletTheme_windowTransitionStyle = 0; public static final int[] LoadingImageView = { 0x7f010040, 0x7f010041, 0x7f010042 }; public static final int LoadingImageView_circleCrop = 2; public static final int LoadingImageView_imageAspectRatio = 1; public static final int LoadingImageView_imageAspectRatioAdjust = 0; public static final int[] MapAttrs = { 0x7f010043, 0x7f010044, 0x7f010045, 0x7f010046, 0x7f010047, 0x7f010048, 0x7f010049, 0x7f01004a, 0x7f01004b, 0x7f01004c, 0x7f01004d, 0x7f01004e, 0x7f01004f, 0x7f010050, 0x7f010051, 0x7f010052, 0x7f010053 }; public static final int MapAttrs_ambientEnabled = 16; public static final int MapAttrs_cameraBearing = 1; public static final int MapAttrs_cameraTargetLat = 2; public static final int MapAttrs_cameraTargetLng = 3; public static final int MapAttrs_cameraTilt = 4; public static final int MapAttrs_cameraZoom = 5; public static final int MapAttrs_liteMode = 6; public static final int MapAttrs_mapType = 0; public static final int MapAttrs_uiCompass = 7; public static final int MapAttrs_uiMapToolbar = 15; public static final int MapAttrs_uiRotateGestures = 8; public static final int MapAttrs_uiScrollGestures = 9; public static final int MapAttrs_uiTiltGestures = 10; public static final int MapAttrs_uiZoomControls = 11; public static final int MapAttrs_uiZoomGestures = 12; public static final int MapAttrs_useViewLifecycle = 13; public static final int MapAttrs_zOrderOnTop = 14; public static final int[] SignInButton = { 0x7f010069, 0x7f01006a, 0x7f01006b }; public static final int SignInButton_buttonSize = 0; public static final int SignInButton_colorScheme = 1; public static final int SignInButton_scopeUris = 2; public static final int[] WalletFragmentOptions = { 0x7f0100f3, 0x7f0100f4, 0x7f0100f5, 0x7f0100f6 }; public static final int WalletFragmentOptions_appTheme = 0; public static final int WalletFragmentOptions_environment = 1; public static final int WalletFragmentOptions_fragmentMode = 3; public static final int WalletFragmentOptions_fragmentStyle = 2; public static final int[] WalletFragmentStyle = { 0x7f0100f7, 0x7f0100f8, 0x7f0100f9, 0x7f0100fa, 0x7f0100fb, 0x7f0100fc, 0x7f0100fd, 0x7f0100fe, 0x7f0100ff, 0x7f010100, 0x7f010101 }; public static final int WalletFragmentStyle_buyButtonAppearance = 3; public static final int WalletFragmentStyle_buyButtonHeight = 0; public static final int WalletFragmentStyle_buyButtonText = 2; public static final int WalletFragmentStyle_buyButtonWidth = 1; public static final int WalletFragmentStyle_maskedWalletDetailsBackground = 6; public static final int WalletFragmentStyle_maskedWalletDetailsButtonBackground = 8; public static final int WalletFragmentStyle_maskedWalletDetailsButtonTextAppearance = 7; public static final int WalletFragmentStyle_maskedWalletDetailsHeaderTextAppearance = 5; public static final int WalletFragmentStyle_maskedWalletDetailsLogoImageType = 10; public static final int WalletFragmentStyle_maskedWalletDetailsLogoTextColor = 9; public static final int WalletFragmentStyle_maskedWalletDetailsTextAppearance = 4; } }
[ "brotark@gmail.com" ]
brotark@gmail.com
13bc8bbf2708e83d615f81d24e2326ef511a1bb5
c462bbfe6d2df180254fbfefc57a88d30da4445b
/05Week/HomeWork10/main/java/com/voilaf/jdbc/BatchJdbc.java
5c899142925e2f23f06d910e86a4aba4b328a084
[]
no_license
sovwcwsfm/Java-learn
0b843d5fed7139c02d5de69d77db40664129215d
8283c031ad23aa660a0afda851eed89043ee7506
refs/heads/main
2023-07-21T01:43:56.648772
2021-09-05T08:13:35
2021-09-05T08:13:35
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,243
java
package com.voilaf.jdbc; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.SQLException; import java.util.Random; public class BatchJdbc { private Connection conn; public BatchJdbc() throws Exception { // 注册 JDBC 驱动 Class.forName("com.mysql.cj.jdbc.Driver"); // 打开链接 conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/spring?useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=UTC", "root", "123456"); } public void batchInsert() throws SQLException { conn.setAutoCommit(false); String sql = "insert into user values (null, ?)"; PreparedStatement preparedStatement = conn.prepareStatement(sql); for (int i=0; i<10; i++) { preparedStatement.setString(1, "xiaowang" + (new Random().nextInt(1000))); preparedStatement.execute(); } preparedStatement.close(); conn.commit(); conn.setAutoCommit(true); } public void close() { try{ if (conn != null) { conn.close(); } } catch (SQLException se) { se.printStackTrace(); } } }
[ "415545367@qq.com" ]
415545367@qq.com
ecb80268b0c4553db8889494901f81d60e1814e0
e7e4c857710299da558da155f7809cbe6fc38edc
/ssm-parent/ssm-portal/target/tomcat/work/Tomcat/localhost/_/org/apache/jsp/WEB_002dINF/jsp/commons/footer_002dlinks_jsp.java
bd18338e80b62b4c161a785fdd0f1e727e515998
[]
no_license
caddo0828/ego
21b04ec9cff3d7ef59f9bdc20e79d6cbe1603d48
b7b107da80e434dc14210f1f4d6779f9454b25f3
refs/heads/master
2022-12-21T19:54:41.831700
2019-07-11T04:12:28
2019-07-11T04:12:28
186,364,648
1
0
null
2022-12-16T05:46:00
2019-05-13T07:09:23
JavaScript
UTF-8
Java
false
false
3,879
java
/* * Generated by the Jasper component of Apache Tomcat * Version: Apache Tomcat/7.0.47 * Generated at: 2019-05-10 06:42:04 UTC * Note: The last modified time of this file was set to * the last modified time of the source file after * generation to assist with modification tracking. */ package org.apache.jsp.WEB_002dINF.jsp.commons; import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; public final class footer_002dlinks_jsp extends org.apache.jasper.runtime.HttpJspBase implements org.apache.jasper.runtime.JspSourceDependent { private static final javax.servlet.jsp.JspFactory _jspxFactory = javax.servlet.jsp.JspFactory.getDefaultFactory(); private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants; private javax.el.ExpressionFactory _el_expressionfactory; private org.apache.tomcat.InstanceManager _jsp_instancemanager; public java.util.Map<java.lang.String,java.lang.Long> getDependants() { return _jspx_dependants; } public void _jspInit() { _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory(); _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig()); } public void _jspDestroy() { } public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException { final javax.servlet.jsp.PageContext pageContext; javax.servlet.http.HttpSession session = null; final javax.servlet.ServletContext application; final javax.servlet.ServletConfig config; javax.servlet.jsp.JspWriter out = null; final java.lang.Object page = this; javax.servlet.jsp.JspWriter _jspx_out = null; javax.servlet.jsp.PageContext _jspx_page_context = null; try { response.setContentType("text/html; charset=UTF-8"); pageContext = _jspxFactory.getPageContext(this, request, response, null, true, 8192, true); _jspx_page_context = pageContext; application = pageContext.getServletContext(); config = pageContext.getServletConfig(); session = pageContext.getSession(); out = pageContext.getOut(); _jspx_out = out; out.write("\r\n"); out.write("<div id=\"footer-2013\">\r\n"); out.write("\t<div class=\"links\"><a href=\"http://www.jd.com/intro/about.aspx\" target=\"_blank\" rel=\"nofollow\">关于我们</a>|<a href=\"http://www.jd.com/contact/\" target=\"_blank\" rel=\"nofollow\">联系我们</a>|<a href=\"http://zhaopin.jd.com/\" target=\"_blank\" rel=\"nofollow\">人才招聘</a>|<a href=\"http://www.jd.com/contact/joinin.aspx\" target=\"_blank\" rel=\"nofollow\">商家入驻</a>|<a href=\"http://jzt.jd.com\" target=\"_blank\" rel=\"nofollow\">营销中心</a>|<a href=\"http://app.jd.com/\" target=\"_blank\" rel=\"nofollow\">手机易购</a>|<a href=\"http://club.jd.com/links.aspx\" target=\"_blank\">友情链接</a>|<a href=\"http://media.jd.com/\" target=\"_blank\">销售联盟</a>|<a target=\"_blank\" href=\"http://club.jd.com/\">易购社区</a>|<a target=\"_blank\" href=\"http://gongyi.jd.com\">易购公益</a>|<a target=\"_blank\" href=\"http://en.jd.com/\">English Site</a></div>\r\n"); out.write("</div>"); } catch (java.lang.Throwable t) { if (!(t instanceof javax.servlet.jsp.SkipPageException)){ out = _jspx_out; if (out != null && out.getBufferSize() != 0) try { out.clearBuffer(); } catch (java.io.IOException e) {} if (_jspx_page_context != null) _jspx_page_context.handlePageException(t); else throw new ServletException(t); } } finally { _jspxFactory.releasePageContext(_jspx_page_context); } } }
[ "tan_qi@sohu.com" ]
tan_qi@sohu.com
04506cc9f64867641fe877d4ce8d7d7ed70896f3
c3cf33e7b9fe20ff3124edcfc39f08fa982b2713
/pocs/terraform-cdk-fun/src/main/java/imports/kubernetes/DataKubernetesPodSpecContainerLivenessProbeTcpSocket.java
c3b78eeeab864936c54f50c3642926edb3d832ef
[ "Unlicense" ]
permissive
diegopacheco/java-pocs
d9daa5674921d8b0d6607a30714c705c9cd4c065
2d6cc1de9ff26e4c0358659b7911d2279d4008e1
refs/heads/master
2023-08-30T18:36:34.626502
2023-08-29T07:34:36
2023-08-29T07:34:36
107,281,823
47
57
Unlicense
2022-03-23T07:24:08
2017-10-17T14:42:26
Java
UTF-8
Java
false
false
2,010
java
package imports.kubernetes; @javax.annotation.Generated(value = "jsii-pacmak/1.30.0 (build adae23f)", date = "2021-06-16T06:12:12.513Z") @software.amazon.jsii.Jsii(module = imports.kubernetes.$Module.class, fqn = "kubernetes.DataKubernetesPodSpecContainerLivenessProbeTcpSocket") public class DataKubernetesPodSpecContainerLivenessProbeTcpSocket extends com.hashicorp.cdktf.ComplexComputedList { protected DataKubernetesPodSpecContainerLivenessProbeTcpSocket(final software.amazon.jsii.JsiiObjectRef objRef) { super(objRef); } protected DataKubernetesPodSpecContainerLivenessProbeTcpSocket(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) { super(initializationMode); } /** * @param terraformResource This parameter is required. * @param terraformAttribute This parameter is required. * @param complexComputedListIndex This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public DataKubernetesPodSpecContainerLivenessProbeTcpSocket(final @org.jetbrains.annotations.NotNull com.hashicorp.cdktf.ITerraformResource terraformResource, final @org.jetbrains.annotations.NotNull java.lang.String terraformAttribute, final @org.jetbrains.annotations.NotNull java.lang.String complexComputedListIndex) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(terraformResource, "terraformResource is required"), java.util.Objects.requireNonNull(terraformAttribute, "terraformAttribute is required"), java.util.Objects.requireNonNull(complexComputedListIndex, "complexComputedListIndex is required") }); } public @org.jetbrains.annotations.NotNull java.lang.String getPort() { return software.amazon.jsii.Kernel.get(this, "port", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } }
[ "diego.pacheco.it@gmail.com" ]
diego.pacheco.it@gmail.com
5d45b28161b3d7f55f7f91dbcddf6682463803d9
6b082d43b7f74dbdc1555dc9a415c4eb4d75ca96
/src/main/java/com/example/demo/mapper/TCommAreaMapper.java
b3811b83a094eaaa4764d299567b5a1c6204298f
[]
no_license
robinbingo/springboot-mybatis-demo
cf6fdb4276ab891dbf16882241305826b3e65938
44080ef78025826e3f3512802ef07b45d48bc187
refs/heads/master
2021-09-01T08:30:48.246119
2017-12-26T02:10:59
2017-12-26T02:10:59
114,142,925
0
0
null
null
null
null
UTF-8
Java
false
false
923
java
package com.example.demo.mapper; import com.example.demo.model.TCommArea; import com.example.demo.model.TCommAreaExample; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import java.util.List; public interface TCommAreaMapper { long countByExample(TCommAreaExample example); int deleteByExample(TCommAreaExample example); int deleteByPrimaryKey(Long id); int insert(TCommArea record); int insertSelective(TCommArea record); List<TCommArea> selectByExample(TCommAreaExample example); TCommArea selectByPrimaryKey(Long id); int updateByExampleSelective(@Param("record") TCommArea record, @Param("example") TCommAreaExample example); int updateByExample(@Param("record") TCommArea record, @Param("example") TCommAreaExample example); int updateByPrimaryKeySelective(TCommArea record); int updateByPrimaryKey(TCommArea record); }
[ "robinbingo@yeah.net" ]
robinbingo@yeah.net
e01d3dca7b2f7af20244b16bff3189f81ff2702c
318017d9b7df009b7453a9fb8a0a26e47055a1bc
/src/main/java/com/fastrackit/CertificatDeProprietate.java
0ed46e0693c929ef507296497f8cbe963d6440b1
[]
no_license
andradasztankovits/TemaAct
fdf12dfb4b7d07347c4a6b70ac15583c35be2216
9ad634a4132020d03f408392f034aac7be2c73ab
refs/heads/master
2020-07-29T00:30:58.936916
2019-09-19T16:18:38
2019-09-19T16:18:38
209,598,438
0
0
null
null
null
null
UTF-8
Java
false
false
528
java
package com.fastrackit; public class CertificatDeProprietate extends Act { int area; String property; //constructor public CertificatDeProprietate(int area){ this.area = area; } public CertificatDeProprietate(){ } public int getArea() { return area; } public void setArea(int area) { this.area = area; } public String getProperty() { return property; } public void setProperty(String property) { this.property = property; } }
[ "andrada.sztankovits@yahoo.com" ]
andrada.sztankovits@yahoo.com
d106800154896e9fd793946bd1a4492a8a0771b2
d77964aa24cfdca837fc13bf424c1d0dce9c70b9
/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/couchbase/CouchbaseDataAutoConfiguration.java
e67697311a83ec85e7791a24db7d8cf1ce1b1e34
[]
no_license
Suryakanta97/Springboot-Project
005b230c7ebcd2278125c7b731a01edf4354da07
50f29dcd6cea0c2bc6501a5d9b2c56edc6932d62
refs/heads/master
2023-01-09T16:38:01.679446
2018-02-04T01:22:03
2018-02-04T01:22:03
119,914,501
0
1
null
2022-12-27T14:52:20
2018-02-02T01:21:45
Java
UTF-8
Java
false
false
2,598
java
/* * Copyright 2012-2017 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.springframework.boot.autoconfigure.data.couchbase; import com.couchbase.client.java.Bucket; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; import org.springframework.boot.autoconfigure.condition.ConditionalOnSingleCandidate; import org.springframework.boot.autoconfigure.couchbase.CouchbaseAutoConfiguration; import org.springframework.boot.autoconfigure.validation.ValidationAutoConfiguration; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.Import; import org.springframework.data.couchbase.core.mapping.event.ValidatingCouchbaseEventListener; import org.springframework.data.couchbase.repository.CouchbaseRepository; import javax.validation.Validator; /** * {@link EnableAutoConfiguration Auto-configuration} for Spring Data's Couchbase support. * * @author Eddú Meléndez * @author Stephane Nicoll * @since 1.4.0 */ @Configuration @ConditionalOnClass({Bucket.class, CouchbaseRepository.class}) @AutoConfigureAfter({CouchbaseAutoConfiguration.class, ValidationAutoConfiguration.class}) @EnableConfigurationProperties(CouchbaseDataProperties.class) @Import({CouchbaseConfigurerAdapterConfiguration.class, SpringBootCouchbaseDataConfiguration.class}) public class CouchbaseDataAutoConfiguration { @Configuration @ConditionalOnClass(Validator.class) public static class ValidationConfiguration { @Bean @ConditionalOnSingleCandidate(Validator.class) public ValidatingCouchbaseEventListener validationEventListener( Validator validator) { return new ValidatingCouchbaseEventListener(validator); } } }
[ "suryakanta97@github.com" ]
suryakanta97@github.com
041713ecd95b562a65007a0a25662a05bc54ad3c
f53797320ebe4f799a73e7e6d6eff3293a9bdbe4
/Springboot/src/main/java/com/company/Springboot/Controllers/InterceptorExample.java
88c3be38e4cfd62ccaad3d33b2704cc4977b185e
[]
no_license
saukin/Udemy_Spring_Angular
d9036a5e79b8a3fe8a52281a5ec8bb700edc8248
a8a6efcd5ef0a6189397084f18061f927cd4cdcb
refs/heads/master
2023-03-16T15:25:15.422747
2021-03-18T15:26:01
2021-03-18T15:26:01
344,868,144
0
0
null
null
null
null
UTF-8
Java
false
false
995
java
package com.company.Springboot.Controllers; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.lang.Nullable; import org.springframework.stereotype.Component; import org.springframework.web.servlet.HandlerInterceptor; import org.springframework.web.servlet.ModelAndView; @Component public class InterceptorExample implements HandlerInterceptor { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception { System.out.println("Pre Handle.."); return true; } public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, @Nullable ModelAndView modelAndView) throws Exception { System.out.println("Post Handle.."); } public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, @Nullable Exception ex) throws Exception { System.out.println("After Completion.."); } }
[ "saukin@yahoo.com" ]
saukin@yahoo.com
cdc102ca729c9bbf62dbac76e40e42f846559a01
890c153796f732b81f5bc826f7446ce534e15d59
/app/src/main/java/net/kaunghtetlin/ted/mvp/views/PodcastsView.java
ddc19c10435b3776682b12ed3897e43813a4460d
[ "Apache-2.0" ]
permissive
KaungHtetLin/TED
87ba13990f3ec8b8475257806f8c86405d281bc1
7f47d759e9779010e51cd376fbd5f0d362f20cbb
refs/heads/master
2021-05-10T13:45:54.354898
2018-01-30T18:44:15
2018-01-30T18:44:15
118,490,117
0
0
null
null
null
null
UTF-8
Java
false
false
262
java
package net.kaunghtetlin.ted.mvp.views; import net.kaunghtetlin.ted.data.vos.PodcastsVO; import java.util.List; /** * Created by Kaung Htet Lin on 1/27/2018. */ public interface PodcastsView { void displayPodcastsLists(List<PodcastsVO> podcastsVOS); }
[ "kaunghtetlin74.khl@gmail.com" ]
kaunghtetlin74.khl@gmail.com
f00373bc137c275847c0e77bc62c9c3c082b2da5
3f37a0b9ef3a9db96594916f6274e847365b2148
/MyBatis/12_MyBatis_Generator/src/com/wang/MapperDao/UserMapper.java
60f9daff0ad258d57218449fb55c74ea57d2e14b
[]
no_license
MoMentDaDa/JavaProject
2e0bf22ff9d7c364d5ead19345b1b0828402c963
c653e1f65a947eb1be63595aa6e421ba36d1073a
refs/heads/master
2022-12-22T20:19:58.912635
2020-03-27T14:17:13
2020-03-27T14:17:13
250,683,998
0
0
null
2022-12-15T23:47:25
2020-03-28T00:52:58
JavaScript
UTF-8
Java
false
false
818
java
package com.wang.MapperDao; import com.wang.Domain.User; import com.wang.Domain.UserExample; import com.wang.Domain.UserKey; import java.util.List; import org.apache.ibatis.annotations.Param; public interface UserMapper { long countByExample(UserExample example); int deleteByExample(UserExample example); int deleteByPrimaryKey(UserKey key); int insert(User record); int insertSelective(User record); List<User> selectByExample(UserExample example); User selectByPrimaryKey(UserKey key); int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example); int updateByExample(@Param("record") User record, @Param("example") UserExample example); int updateByPrimaryKeySelective(User record); int updateByPrimaryKey(User record); }
[ "50093718+MoMentDaDa@users.noreply.github.com" ]
50093718+MoMentDaDa@users.noreply.github.com
8b374a173472e0646c90aaf493ad6f6ac3d7964c
7e8f12b3ced5cfa18a03f7de3e9bd5e4f2f27051
/src/test/java/com/epam/module5/tests/FindUser.java
817b8540f7409e5129f3a84cedab6edd5395a186
[]
no_license
SafronovA/module5Git
3dd586b40a204ae9c84db998f953a5bea3bd70f4
6b6ac454a8a4b37a491acc317dc91adfb5b2f993
refs/heads/master
2020-03-28T22:41:25.473684
2018-09-17T14:56:15
2018-09-17T14:56:15
147,350,898
0
0
null
null
null
null
UTF-8
Java
false
false
389
java
package com.epam.module5.tests; import org.testng.Assert; import org.testng.annotations.Test; public class FindUser extends BaseTest { @Test(groups = "FindUser") public void findUserTest(){ Assert.assertTrue(mainPage.fillSearchInput(FIND_USER) .clickUsersLink() .checkAvailability(FIND_USER)); } }
[ "alexey.safronov96@gmail.com" ]
alexey.safronov96@gmail.com
f3c7714fbc733f4d79d24735f2fdbcee7ea5fc69
15cb828c9a2a391910f4ddee49569d483032bd3f
/src/No.java
36e9f257a2ee5e557b850910f1db55c812b2a370
[ "MIT" ]
permissive
PauloJMNicolau/NumberLink-IIA-efolioA
96e05f6e54fdb7abb8aa62bd42d1a98b01ee0868
75f647dce614f664e7cef619df90c63a500640c6
refs/heads/main
2023-06-04T09:24:53.763047
2021-06-11T18:22:11
2021-06-11T18:22:11
359,490,337
0
1
null
null
null
null
UTF-8
Java
false
false
7,986
java
import java.util.ArrayList; /** * Classe que possui os métodos que executam as funções da árvore de pesquisa */ public class No { private Mapa estado; //Atributo Mapa do tabuleiro private int posPai; //Posição do nó Pai private ArrayList<No> sucessores; //Lista de nós sucessores private int posicao; //Atributo posição do nó private int nivel; //Atributo nivel do nó na árvore /** * Construtor do Nó da arvore * @param estado - estado do nó * @param posicao - posicao * @param posPai - posicao do nó pai */ public No(Mapa estado, int posicao, int posPai){ this.estado = estado; this.posicao = posicao; this.posPai = posPai; this.sucessores = new ArrayList<>(); this.nivel= 0; } /** * Setter do atributo nivel * @param valor - valor a atribuir */ public void setNivel(int valor){ this.nivel = valor; } /** * Getter do atributo nivel na aŕvore de pesquisa * @return valor do atributo nivel */ public int getNivel(){ return this.nivel; } /** * Getter do atributo posicao * @return valor do atributo posição */ public int getPosicao(){ return this.posicao; } /** * Setter do atributo posicao que coloca o valor no valor inicial */ public void resetPosicao(){ this.posicao = -1; } /** * Função que retorna a lista de letras no tabuleiro * @return Lista de letras no tabuleiro */ public ArrayList<Character> getLetras(){ return this.estado.getLetras(); } /** * Função que retorna o valor da ultima letra na lista de letras * @return valor do ultimo elemento da lista de letras */ public String getLastLetra(){ return this.estado.getLastLetra(); } /** * Getter do atributo estado (mapa do tabuleiro) * @return retorna o mapa do tabuleiro */ public Mapa getEstado(){ return this.estado; } /** * Função que executa a função de validação do caminho * @param letra letra a procurar * @param elemento elemento que deve existir no caminho * @return True caso seja valido | False caso seja inválido * @throws NullPointerException Excepção */ public boolean caminhoValido(String letra,String elemento) throws NullPointerException { return this.estado.caminhoValido(letra, elemento); } /** * Getter que retorna a lista de vizinhos de uma casa * @param posicao posição da casa * @return lista de vizinhos */ public ArrayList<Integer> getVizinhos(int posicao){ return this.getEstado().getCasa(posicao).getVizinhos(); } /** * Getter que retorna a quantidade de nós sucessores do nó * @return valor da quantidade de sucessores do nó */ public int getQuantidadeSucessores(){ return this.sucessores.size(); } /** * Gettter que retorna a lista de sucessores do nó removendo-os do nó de origem * @return lista de sucessores do nó */ public ArrayList<No> getSucessores(){ ArrayList<No> lista = new ArrayList<>(this.sucessores); this.sucessores.clear(); return lista; } /** * Função que executa a função que retorna os dados do mapa numa string * @return string com os dados do mapa para imprimir no ecrã */ public String toString(){ return this.estado.toString(); } /** * Função que cria cada novo nó sucessor * @param posicao - posição casa a alterar * @param letra - letra a colocar na casa * @param posPai - posição do nó pai * @param no - nó onde deve copiar o mapa */ public void gerarMutacao(int posicao, String letra, int posPai, No no){ try{ //verifica se o elemento da casa do tabuleiro está vazio if (this.estado.getElementoCasa(posicao).compareTo(".")==0){ //Cria um novo nó No novo = new No(no.getEstado().getCopiaMapa(), posicao, posPai); //Altera o elemnto da caso na posição indicada e adiciona na lista de cucessores novo.getEstado().setCasa(posicao, letra.toLowerCase()); this.sucessores.add(novo); } } catch (OutOfMemoryError erro){ throw new OutOfMemoryError(); } } /** * Função que cria cada novo nó sucessor com nivel * @param posicao - posição casa a alterar * @param letra - letra a colocar na casa * @param posPai - posição do nó pai * @param no - nó onde deve copiar o mapa * @param nivel nvivel do nó */ public void gerarMutacao(int posicao, String letra, int posPai, No no, int nivel){ try{ //verifica se o elemento da casa do tabuleiro está vazio if (this.estado.getElementoCasa(posicao).compareTo(".")==0){ //Cria um novo no No novo = new No(no.getEstado().getCopiaMapa(), posicao, posPai); //Altera o elemento da cas na posição indicada e o nivel do no e adiciona o novo nó na lista de sucessores novo.getEstado().setCasa(posicao, letra.toLowerCase()); novo.setNivel(nivel); this.sucessores.add(novo); } } catch (OutOfMemoryError erro){ throw new OutOfMemoryError(); } } /** * Função que cria os sucessores do nó * @param no nó que deve replicar * @param letra - letra a alterar */ public void gerarSucessores(No no, String letra){ try { ArrayList<Integer> vizinhos; int posicao; //verifica se é o nó inicial if (no.getPosicao() == -1) { //Obtem a primeira casa do tabuleiro que contêm a letra Casa casa = no.getEstado().getCasa(letra); //Obtem a posição e os vizinhos dessa casa posicao = casa.getPosicao(); vizinhos = casa.getVizinhos(); //Se não for o nó inicial } else { //Obtêm a posição e os vizinhos da casa do nó fornecido posicao = no.getPosicao(); vizinhos = getVizinhos(no.getPosicao()); } //Para cada vizinho vai gerar um novo nó sucessor for (Integer i : vizinhos) { gerarMutacao(i, letra, posicao, no); } } catch (OutOfMemoryError erro){ throw new OutOfMemoryError(); } } /** * Função que cria os sucessores do nó com nivel * @param no no que deve replicar * @param letra letra que deve alterar * @param nivel nivel do no */ public void gerarSucessores(No no, String letra, int nivel){ try { ArrayList<Integer> vizinhos; int posicao; //verifica se é o nó inicial if (no.getPosicao() == -1) { //Obtem a primeira casa do tabuleiro que contêm a letra Casa casa = no.getEstado().getCasa(letra); //Obtem a posição e os vizinhos dessa casa posicao = casa.getPosicao(); vizinhos = casa.getVizinhos(); //Se não for o nó inicial } else { //Obtêm a posição e os vizinhos da casa do nó fornecido posicao = no.getPosicao(); vizinhos = getVizinhos(no.getPosicao()); } //Para cada vizinho vai gerar um novo nó sucessor for (Integer i : vizinhos) { gerarMutacao(i, letra, posicao, no, nivel); } } catch (OutOfMemoryError erro){ throw new OutOfMemoryError(); } } }
[ "paulojmnicolau227@gmail.com" ]
paulojmnicolau227@gmail.com
eee967dc818b46f1979aa5e763b5d742b5a90f7b
7549fa1a44c66a40ca946e6b569e8f14afeb2887
/src/main/java/ex42/App.java
efef0dedae93b26f90d2f8a442c9d41ed7cc6998
[]
no_license
Urimus3600/Mathew-cop3330-assignment3
8300e7358dc53e27e8377941ce7461233938995d
0b52281c5b3cf6baafb6b35416403beca0b7bdcd
refs/heads/master
2023-09-04T17:57:11.561509
2021-10-12T06:12:46
2021-10-12T06:12:46
416,103,880
0
0
null
null
null
null
UTF-8
Java
false
false
1,799
java
/* * UCF COP3330 Fall 2021 Assignment 3 Solution * Copyright 2021 Austin Mathew */ package ex42; import java.io.IOException; import java.nio.file.Paths; import java.util.Formatter; import java.util.LinkedList; import java.util.NoSuchElementException; import java.util.Scanner; public class App { public static void main(String[] args) { //psuedocode //open file in and out //make linked list of a class or make a class holding a linked list // use constructor to take each person's info from the stuck together string // display the link list with a method using a loop to go through the link // list and print in required format try (Scanner input = new Scanner(Paths.get("exercise42_input.txt"))) { try (Formatter output = new Formatter("exercise42_output.txt")) { LinkedList<Employee> team = new LinkedList<>(); while(input.hasNext()){ String info = input.nextLine(); team.add(new Employee(info)); } fDisplayCompany(team, output); } catch (IOException | NoSuchElementException | IllegalStateException e) { e.printStackTrace(); } } catch (IOException e) { e.printStackTrace(); } } private static void fDisplayCompany(LinkedList<Employee> team, Formatter output) { output.format("%-20s%-20s%8s\n", "Last", "First", "Salary"); for(int i=0; i<12; i++){ output.format("----"); } output.format("\n"); while (!team.isEmpty()) { output.format("%-20s%-20s%8s\n", team.get(0).lastname, team.get(0).firstname, team.get(0).salary); team.removeFirst(); } } }
[ "BlueOrchid543@gmail.com" ]
BlueOrchid543@gmail.com
c3753147f2b7d6cc2c35309589e59db8df0127f5
f2dbc9505a830ac2ae8674475ab52d56da5fcd25
/src/main/java/com/tchepannou/kiosk/validator/ValidatorContext.java
4e42c105835330f58824c3e8139ac142d8062962
[]
no_license
htchepannou/content-validator
25cd5266ff03280cb99bf86abc74a333ef75e84c
813d4bc575a1e853249b570e57cd1b1e5faec8cf
refs/heads/master
2021-01-11T03:39:30.447058
2016-10-27T23:50:00
2016-10-27T23:50:00
71,404,608
0
0
null
null
null
null
UTF-8
Java
false
false
249
java
package com.tchepannou.kiosk.validator; import java.util.List; public interface ValidatorContext { List<Rule> getRules(); List<String> getLanguages(); int getContentMinLength(); boolean alreadyPublished(String id, String title); }
[ "htchepannou@expedia.com" ]
htchepannou@expedia.com
884c1b67e179e988123d462f9bce8bcf213e27b5
eae51d7e2054a29f105981882b680a61424a0b9d
/usaco/where/where.java
f40b0e7ac77547d22155804c522d3fe40814ba89
[]
no_license
tparkerd/cop4516
8834fd5e8b27b9bbb1270827b8540f214adb0230
0e419382c445d15c15dc17f75188180564d88c90
refs/heads/master
2021-03-27T14:22:18.929322
2017-05-01T05:12:08
2017-05-01T05:12:08
null
0
0
null
null
null
null
UTF-8
Java
false
false
302
java
import java.io.*; import java.util.*; public class where { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new FileReader("template.in")); PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter("template.out"))); pw.close(); } }
[ "tim.parkerd@gmail.com" ]
tim.parkerd@gmail.com
e015f9dcf626a341acbca395b0f984aa7790ce58
f3f02f224ba2752994f0943a17d2dac3703a6c29
/fotoshop-bad/src/editor/Editor.java
9ed581408e989074cd348416128bfcc53da0116f
[]
no_license
1475963/fotoshop-bad
da7f6caef17443f6a77a9c586317c761ee9e990e
328746b166678361f9bca19ec84854f39aa0b47f
refs/heads/master
2021-01-09T20:19:38.000232
2016-07-16T15:24:24
2016-07-16T15:24:24
63,488,560
0
0
null
null
null
null
UTF-8
Java
false
false
4,660
java
package editor; import task.*; import internationalisation.Internationalisation; import ui.*; /** * This class is the main processing class of the Fotoshop application. * Fotoshop is a very simple image editing tool. Users can apply a number of * filters to an image. That's all. It should really be extended to make it more * useful! * To edit an image, create an instance of this class and call the "edit" * method. */ public class Editor { private static Editor editor = null; private Internationalisation langSupport; private Tasks tasks; private Parser parser; private UI ui; private boolean run; /** * Create the editor and initialise internalisationation support, commands, * parser and set running state to true. */ private Editor(String bundleName, String local, String lang, UI ui) { this.langSupport = Internationalisation.getInstance(bundleName, local, lang); this.tasks = new Tasks(); this.parser = new Parser(); this.ui = ui; this.run = true; } /** * Editor singleton accessor, creates an editor instance if none is found * else returns it. * @return Editor object. Instanciated with default values. */ public static Editor getInstance() { if (editor == null) { editor = new Editor(Main.DEFAULT_BUNDLE, Main.DEFAULT_LOCAL, Main.DEFAULT_LANG, new CLI()); } return (editor); } /** * Editor singleton accessor, creates an editor instance if none is found else returns it. * @param bundleName String, you can specify a bundlename contained in internationalisation package from the command line. Default "MiscBundle". * @param local String, you can specify a locality like "GB", "US", "FR". Default "GB". * @param lang String, language selected like "en", "fr". Default "en". * @param ui UI object, GUI or CLI * @return Editor object. */ public static Editor getInstance(String bundleName, String local, String lang, UI ui) { if (editor == null) { editor = new Editor(bundleName, local, lang, ui); } return (editor); } /** * Main edit routine. Loops until the end of the editing session. */ public void edit() { if (this.getUI() instanceof GUI) { } else if (this.getUI() instanceof CLI) { this.printWelcome(); while (run) { Command command = this.parser.getCommand(); this.processCommand(command); } this.printBye(); } } /** * Print out the opening message for the user. */ private void printWelcome() { this.ui.welcome(); } /** * Print out the ending message for the user. */ private void printBye() { this.ui.bye(); } /** * Check if a command is known in our loaded data from internationalisation bundles. * Then call execution function with the right index by translating the command in given language to its index. * @param command The command to be processed. */ public void processCommand(Command command) { if (command.isUnknown()) { this.ui.unknown(); return ; } String commandWord = command.getCommandWord(); this.tasks.execute(this.langSupport.getCommandWords().get(commandWord), command); } /** * Return parser object reference used to have access to the parser from the script task. * @return Parser object. */ public Parser getParser() { return (this.parser); } /** * Return the tasks object. * @return Tasks object which stores all command tasks indexed by a string which is the command name in selected language. */ public Tasks getCommands() { return (this.tasks); } /** * Return an user interface object. * @return UI object which is a GUI or a CLI. */ public UI getUI() { return (this.ui); } /** * Set the running state of the editor to false (exit the program then). */ public void stop() { this.run = false; } /** * Set the running state of the editor to true. */ public void turnOn() { this.run = true; } /** * Return the running state of the editor. * @return Boolean representing running state of the editor. */ public boolean isRunning() { return (this.run); } }
[ "marc.benzahra@epitech.eu" ]
marc.benzahra@epitech.eu
5dbbbd70777dc18f1144e473a83325cd33ed88e4
be73270af6be0a811bca4f1710dc6a038e4a8fd2
/crash-reproduction-moho/results/MATH-60b-2-12-NSGA_II-WeightedSum:TestLen:CallDiversity/org/apache/commons/math/special/Gamma_ESTest.java
50d1a5ce424cbf9860a32305e792c91451e469e5
[]
no_license
STAMP-project/Botsing-multi-objectivization-using-helper-objectives-application
cf118b23ecb87a8bf59643e42f7556b521d1f754
3bb39683f9c343b8ec94890a00b8f260d158dfe3
refs/heads/master
2022-07-29T14:44:00.774547
2020-08-10T15:14:49
2020-08-10T15:14:49
285,804,495
0
0
null
null
null
null
UTF-8
Java
false
false
548
java
/* * This file was automatically generated by EvoSuite * Sat Jan 18 21:55:00 UTC 2020 */ package org.apache.commons.math.special; import org.junit.Test; import static org.junit.Assert.*; import org.evosuite.runtime.EvoRunner; import org.evosuite.runtime.EvoRunnerParameters; import org.junit.runner.RunWith; @RunWith(EvoRunner.class) @EvoRunnerParameters(useVFS = true, useJEE = true) public class Gamma_ESTest extends Gamma_ESTest_scaffolding { @Test public void notGeneratedAnyTest() { // EvoSuite did not generate any tests } }
[ "pouria.derakhshanfar@gmail.com" ]
pouria.derakhshanfar@gmail.com
7eae48406d79e9325278ea2a12a7133651d359f2
a36dce4b6042356475ae2e0f05475bd6aed4391b
/2005/julypersistenceEJB/ejbModule/com/hps/july/persistence/EJSRemoteCMPContract_f0f90933.java
cfa803ee9a6dad37ae99f90996cffc9b1ff66095
[]
no_license
ildar66/WSAD_NRI
b21dbee82de5d119b0a507654d269832f19378bb
2a352f164c513967acf04d5e74f36167e836054f
refs/heads/master
2020-12-02T23:59:09.795209
2017-07-01T09:25:27
2017-07-01T09:25:27
95,954,234
0
1
null
null
null
null
UTF-8
Java
false
false
101,144
java
package com.hps.july.persistence; import com.ibm.ejs.container.*; /** * EJSRemoteCMPContract_f0f90933 */ public class EJSRemoteCMPContract_f0f90933 extends EJSWrapper implements Contract { /** * EJSRemoteCMPContract_f0f90933 */ public EJSRemoteCMPContract_f0f90933() throws java.rmi.RemoteException { super(); } /** * getDeployedSupport */ public com.ibm.ejs.container.EJSDeployedSupport getDeployedSupport() { return container.getEJSDeployedSupport(this); } /** * putDeployedSupport */ public void putDeployedSupport(com.ibm.ejs.container.EJSDeployedSupport support) { container.putEJSDeployedSupport(support); return; } /** * getIsautodoc */ public boolean getIsautodoc() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); boolean _EJS_result = false; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 0, _EJS_s); _EJS_result = beanRef.getIsautodoc(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 0, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getNeedapprove */ public boolean getNeedapprove() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); boolean _EJS_result = false; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 1, _EJS_s); _EJS_result = beanRef.getNeedapprove(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 1, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getShowtouser */ public boolean getShowtouser() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); boolean _EJS_result = false; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 2, _EJS_s); _EJS_result = beanRef.getShowtouser(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 2, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getBaseAgreement */ public com.hps.july.persistence.BaseAgreement getBaseAgreement() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.BaseAgreement _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 3, _EJS_s); _EJS_result = beanRef.getBaseAgreement(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 3, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getBaseAgreementKey */ public com.hps.july.persistence.BaseAgreementKey getBaseAgreementKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.BaseAgreementKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 4, _EJS_s); _EJS_result = beanRef.getBaseAgreementKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 4, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getCurrency */ public com.hps.july.persistence.Currency getCurrency() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.Currency _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 5, _EJS_s); _EJS_result = beanRef.getCurrency(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 5, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getCurrencyKey */ public com.hps.july.persistence.CurrencyKey getCurrencyKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.CurrencyKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 6, _EJS_s); _EJS_result = beanRef.getCurrencyKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 6, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getContragent */ public com.hps.july.persistence.Organization getContragent() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.Organization _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 7, _EJS_s); _EJS_result = beanRef.getContragent(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 7, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getOwner */ public com.hps.july.persistence.Organization getOwner() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.Organization _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 8, _EJS_s); _EJS_result = beanRef.getOwner(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 8, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getContragentKey */ public com.hps.july.persistence.OrganizationKey getContragentKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.OrganizationKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 9, _EJS_s); _EJS_result = beanRef.getContragentKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 9, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getOwnerKey */ public com.hps.july.persistence.OrganizationKey getOwnerKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.OrganizationKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 10, _EJS_s); _EJS_result = beanRef.getOwnerKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 10, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getFrom */ public com.hps.july.persistence.StoragePlace getFrom() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.StoragePlace _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 11, _EJS_s); _EJS_result = beanRef.getFrom(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 11, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getTo */ public com.hps.july.persistence.StoragePlace getTo() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.StoragePlace _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 12, _EJS_s); _EJS_result = beanRef.getTo(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 12, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getFromKey */ public com.hps.july.persistence.StoragePlaceKey getFromKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.StoragePlaceKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 13, _EJS_s); _EJS_result = beanRef.getFromKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 13, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getToKey */ public com.hps.july.persistence.StoragePlaceKey getToKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.StoragePlaceKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 14, _EJS_s); _EJS_result = beanRef.getToKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 14, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getSupplyType */ public com.hps.july.persistence.SupplyType getSupplyType() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.SupplyType _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 15, _EJS_s); _EJS_result = beanRef.getSupplyType(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 15, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getSupplyTypeKey */ public com.hps.july.persistence.SupplyTypeKey getSupplyTypeKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.SupplyTypeKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 16, _EJS_s); _EJS_result = beanRef.getSupplyTypeKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 16, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getController */ public com.hps.july.persistence.Worker getController() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.Worker _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 17, _EJS_s); _EJS_result = beanRef.getController(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 17, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getWorker */ public com.hps.july.persistence.Worker getWorker() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.Worker _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 18, _EJS_s); _EJS_result = beanRef.getWorker(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 18, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getStorageManager */ public com.hps.july.persistence.Worker getStorageManager() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.Worker _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 19, _EJS_s); _EJS_result = beanRef.getStorageManager(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 19, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getControllerKey */ public com.hps.july.persistence.WorkerKey getControllerKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.WorkerKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 20, _EJS_s); _EJS_result = beanRef.getControllerKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 20, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getWorkerKey */ public com.hps.july.persistence.WorkerKey getWorkerKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.WorkerKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 21, _EJS_s); _EJS_result = beanRef.getWorkerKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 21, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getStorageManagerKey */ public com.hps.july.persistence.WorkerKey getStorageManagerKey() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); com.hps.july.persistence.WorkerKey _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 22, _EJS_s); _EJS_result = beanRef.getStorageManagerKey(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 22, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getBlankindex */ public int getBlankindex() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); int _EJS_result = 0; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 23, _EJS_s); _EJS_result = beanRef.getBlankindex(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 23, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getDocument */ public int getDocument() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); int _EJS_result = 0; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 24, _EJS_s); _EJS_result = beanRef.getDocument(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 24, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getOperator */ public java.lang.Integer getOperator() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.Integer _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 25, _EJS_s); _EJS_result = beanRef.getOperator(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 25, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getParentdocument */ public java.lang.Integer getParentdocument() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.Integer _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 26, _EJS_s); _EJS_result = beanRef.getParentdocument(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 26, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getProjectid */ public java.lang.Integer getProjectid() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.Integer _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 27, _EJS_s); _EJS_result = beanRef.getProjectid(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 27, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getTo2 */ public java.lang.Integer getTo2() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.Integer _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 28, _EJS_s); _EJS_result = beanRef.getTo2(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 28, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getVisualtype */ public java.lang.Integer getVisualtype() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.Integer _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 29, _EJS_s); _EJS_result = beanRef.getVisualtype(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 29, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getContractState */ public java.lang.String getContractState() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 30, _EJS_s); _EJS_result = beanRef.getContractState(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 30, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getName */ public java.lang.String getName() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 31, _EJS_s); _EJS_result = beanRef.getName(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 31, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getTextFileName */ public java.lang.String getTextFileName() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 32, _EJS_s); _EJS_result = beanRef.getTextFileName(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 32, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getTimelineFileName */ public java.lang.String getTimelineFileName() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 33, _EJS_s); _EJS_result = beanRef.getTimelineFileName(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 33, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getBlanknumber */ public java.lang.String getBlanknumber() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 34, _EJS_s); _EJS_result = beanRef.getBlanknumber(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 34, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getDocumentState */ public java.lang.String getDocumentState() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 35, _EJS_s); _EJS_result = beanRef.getDocumentState(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 35, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getInsuranceact */ public java.lang.String getInsuranceact() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 36, _EJS_s); _EJS_result = beanRef.getInsuranceact(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 36, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getInsuranseMan */ public java.lang.String getInsuranseMan() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 37, _EJS_s); _EJS_result = beanRef.getInsuranseMan(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 37, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getPrjstatus */ public java.lang.String getPrjstatus() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.lang.String _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 38, _EJS_s); _EJS_result = beanRef.getPrjstatus(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 38, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getSum */ public java.math.BigDecimal getSum() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.math.BigDecimal _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 39, _EJS_s); _EJS_result = beanRef.getSum(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 39, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getFinishDate */ public java.sql.Date getFinishDate() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.sql.Date _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 40, _EJS_s); _EJS_result = beanRef.getFinishDate(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 40, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getStartDate */ public java.sql.Date getStartDate() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.sql.Date _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 41, _EJS_s); _EJS_result = beanRef.getStartDate(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 41, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getBlankdate */ public java.sql.Date getBlankdate() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.sql.Date _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 42, _EJS_s); _EJS_result = beanRef.getBlankdate(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 42, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getInsurancedate */ public java.sql.Date getInsurancedate() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.sql.Date _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 43, _EJS_s); _EJS_result = beanRef.getInsurancedate(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 43, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getCards */ public java.util.Enumeration getCards() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 44, _EJS_s); _EJS_result = beanRef.getCards(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 44, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getI13nActPosition */ public java.util.Enumeration getI13nActPosition() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 45, _EJS_s); _EJS_result = beanRef.getI13nActPosition(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 45, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getStorageCard */ public java.util.Enumeration getStorageCard() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 46, _EJS_s); _EJS_result = beanRef.getStorageCard(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 46, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getCardTrack */ public java.util.Enumeration getCardTrack() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 47, _EJS_s); _EJS_result = beanRef.getCardTrack(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 47, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getCurrentStorageCard */ public java.util.Enumeration getCurrentStorageCard() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 48, _EJS_s); _EJS_result = beanRef.getCurrentStorageCard(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 48, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getDocumentPosition */ public java.util.Enumeration getDocumentPosition() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 49, _EJS_s); _EJS_result = beanRef.getDocumentPosition(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 49, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getDocumentsLinkFrom */ public java.util.Enumeration getDocumentsLinkFrom() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 50, _EJS_s); _EJS_result = beanRef.getDocumentsLinkFrom(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 50, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * getDocumentsLinkTo */ public java.util.Enumeration getDocumentsLinkTo() throws java.rmi.RemoteException, javax.ejb.FinderException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Enumeration _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 51, _EJS_s); _EJS_result = beanRef.getDocumentsLinkTo(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (javax.ejb.FinderException ex) { _EJS_s.setCheckedException(ex); throw ex; } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 51, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * _copyFromEJB */ public java.util.Hashtable _copyFromEJB() throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); java.util.Hashtable _EJS_result = null; try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 52, _EJS_s); _EJS_result = beanRef._copyFromEJB(); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 52, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return _EJS_result; } /** * addCards */ public void addCards(com.hps.july.persistence.StorageCard aCards) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 53, _EJS_s); beanRef.addCards(aCards); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 53, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * addI13nActPosition */ public void addI13nActPosition(com.hps.july.persistence.I13nActPosition anI13nActPosition) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 54, _EJS_s); beanRef.addI13nActPosition(anI13nActPosition); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 54, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * addStorageCard */ public void addStorageCard(com.hps.july.persistence.StorageCard aStorageCard) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 55, _EJS_s); beanRef.addStorageCard(aStorageCard); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 55, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetBaseAgreementKey */ public void privateSetBaseAgreementKey(com.hps.july.persistence.BaseAgreementKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 56, _EJS_s); beanRef.privateSetBaseAgreementKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 56, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetControllerKey */ public void privateSetControllerKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 57, _EJS_s); beanRef.privateSetControllerKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 57, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetCurrencyKey */ public void privateSetCurrencyKey(com.hps.july.persistence.CurrencyKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 58, _EJS_s); beanRef.privateSetCurrencyKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 58, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetSupplyTypeKey */ public void privateSetSupplyTypeKey(com.hps.july.persistence.SupplyTypeKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 59, _EJS_s); beanRef.privateSetSupplyTypeKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 59, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetWorkerKey */ public void privateSetWorkerKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 60, _EJS_s); beanRef.privateSetWorkerKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 60, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddCards */ public void secondaryAddCards(com.hps.july.persistence.StorageCard aCards) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 61, _EJS_s); beanRef.secondaryAddCards(aCards); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 61, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddI13nActPosition */ public void secondaryAddI13nActPosition(com.hps.july.persistence.I13nActPosition anI13nActPosition) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 62, _EJS_s); beanRef.secondaryAddI13nActPosition(anI13nActPosition); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 62, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddStorageCard */ public void secondaryAddStorageCard(com.hps.july.persistence.StorageCard aStorageCard) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 63, _EJS_s); beanRef.secondaryAddStorageCard(aStorageCard); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 63, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveCards */ public void secondaryRemoveCards(com.hps.july.persistence.StorageCard aCards) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 64, _EJS_s); beanRef.secondaryRemoveCards(aCards); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 64, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveI13nActPosition */ public void secondaryRemoveI13nActPosition(com.hps.july.persistence.I13nActPosition anI13nActPosition) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 65, _EJS_s); beanRef.secondaryRemoveI13nActPosition(anI13nActPosition); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 65, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveStorageCard */ public void secondaryRemoveStorageCard(com.hps.july.persistence.StorageCard aStorageCard) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 66, _EJS_s); beanRef.secondaryRemoveStorageCard(aStorageCard); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 66, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetBaseAgreement */ public void secondarySetBaseAgreement(com.hps.july.persistence.BaseAgreement aBaseAgreement) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 67, _EJS_s); beanRef.secondarySetBaseAgreement(aBaseAgreement); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 67, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetController */ public void secondarySetController(com.hps.july.persistence.Worker aController) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 68, _EJS_s); beanRef.secondarySetController(aController); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 68, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetCurrency */ public void secondarySetCurrency(com.hps.july.persistence.Currency aCurrency) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 69, _EJS_s); beanRef.secondarySetCurrency(aCurrency); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 69, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetSupplyType */ public void secondarySetSupplyType(com.hps.july.persistence.SupplyType aSupplyType) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 70, _EJS_s); beanRef.secondarySetSupplyType(aSupplyType); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 70, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetWorker */ public void secondarySetWorker(com.hps.july.persistence.Worker aWorker) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 71, _EJS_s); beanRef.secondarySetWorker(aWorker); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 71, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setBaseAgreement */ public void setBaseAgreement(com.hps.july.persistence.BaseAgreement aBaseAgreement) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 72, _EJS_s); beanRef.setBaseAgreement(aBaseAgreement); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 72, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setContractState */ public void setContractState(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 73, _EJS_s); beanRef.setContractState(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 73, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setController */ public void setController(com.hps.july.persistence.Worker aController) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 74, _EJS_s); beanRef.setController(aController); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 74, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setCurrency */ public void setCurrency(com.hps.july.persistence.Currency aCurrency) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 75, _EJS_s); beanRef.setCurrency(aCurrency); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 75, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setFinishDate */ public void setFinishDate(java.sql.Date newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 76, _EJS_s); beanRef.setFinishDate(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 76, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setName */ public void setName(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 77, _EJS_s); beanRef.setName(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 77, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setStartDate */ public void setStartDate(java.sql.Date newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 78, _EJS_s); beanRef.setStartDate(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 78, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setSum */ public void setSum(java.math.BigDecimal newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 79, _EJS_s); beanRef.setSum(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 79, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setSupplyType */ public void setSupplyType(com.hps.july.persistence.SupplyType aSupplyType) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 80, _EJS_s); beanRef.setSupplyType(aSupplyType); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 80, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setTextFileName */ public void setTextFileName(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 81, _EJS_s); beanRef.setTextFileName(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 81, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setTimelineFileName */ public void setTimelineFileName(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 82, _EJS_s); beanRef.setTimelineFileName(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 82, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setWorker */ public void setWorker(com.hps.july.persistence.Worker aWorker) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 83, _EJS_s); beanRef.setWorker(aWorker); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 83, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * addCardTrack */ public void addCardTrack(com.hps.july.persistence.CardTrack aCardTrack) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 84, _EJS_s); beanRef.addCardTrack(aCardTrack); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 84, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * addCurrentStorageCard */ public void addCurrentStorageCard(com.hps.july.persistence.StorageCard aCurrentStorageCard) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 85, _EJS_s); beanRef.addCurrentStorageCard(aCurrentStorageCard); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 85, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * addDocumentPosition */ public void addDocumentPosition(com.hps.july.persistence.DocumentPosition aDocumentPosition) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 86, _EJS_s); beanRef.addDocumentPosition(aDocumentPosition); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 86, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetContragentKey */ public void privateSetContragentKey(com.hps.july.persistence.OrganizationKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 87, _EJS_s); beanRef.privateSetContragentKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 87, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetFromKey */ public void privateSetFromKey(com.hps.july.persistence.StoragePlaceKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 88, _EJS_s); beanRef.privateSetFromKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 88, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetOwnerKey */ public void privateSetOwnerKey(com.hps.july.persistence.OrganizationKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 89, _EJS_s); beanRef.privateSetOwnerKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 89, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetStorageManagerKey */ public void privateSetStorageManagerKey(com.hps.july.persistence.WorkerKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 90, _EJS_s); beanRef.privateSetStorageManagerKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 90, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * privateSetToKey */ public void privateSetToKey(com.hps.july.persistence.StoragePlaceKey inKey) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 91, _EJS_s); beanRef.privateSetToKey(inKey); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 91, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddCardTrack */ public void secondaryAddCardTrack(com.hps.july.persistence.CardTrack aCardTrack) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 92, _EJS_s); beanRef.secondaryAddCardTrack(aCardTrack); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 92, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddCurrentStorageCard */ public void secondaryAddCurrentStorageCard(com.hps.july.persistence.StorageCard aCurrentStorageCard) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 93, _EJS_s); beanRef.secondaryAddCurrentStorageCard(aCurrentStorageCard); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 93, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddDocumentPosition */ public void secondaryAddDocumentPosition(com.hps.july.persistence.DocumentPosition aDocumentPosition) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 94, _EJS_s); beanRef.secondaryAddDocumentPosition(aDocumentPosition); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 94, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddDocumentsLinkFrom */ public void secondaryAddDocumentsLinkFrom(com.hps.july.persistence.DocumentsLink aDocumentsLinkFrom) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 95, _EJS_s); beanRef.secondaryAddDocumentsLinkFrom(aDocumentsLinkFrom); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 95, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryAddDocumentsLinkTo */ public void secondaryAddDocumentsLinkTo(com.hps.july.persistence.DocumentsLink aDocumentsLinkTo) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 96, _EJS_s); beanRef.secondaryAddDocumentsLinkTo(aDocumentsLinkTo); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 96, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveCardTrack */ public void secondaryRemoveCardTrack(com.hps.july.persistence.CardTrack aCardTrack) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 97, _EJS_s); beanRef.secondaryRemoveCardTrack(aCardTrack); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 97, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveCurrentStorageCard */ public void secondaryRemoveCurrentStorageCard(com.hps.july.persistence.StorageCard aCurrentStorageCard) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 98, _EJS_s); beanRef.secondaryRemoveCurrentStorageCard(aCurrentStorageCard); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 98, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveDocumentPosition */ public void secondaryRemoveDocumentPosition(com.hps.july.persistence.DocumentPosition aDocumentPosition) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 99, _EJS_s); beanRef.secondaryRemoveDocumentPosition(aDocumentPosition); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 99, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveDocumentsLinkFrom */ public void secondaryRemoveDocumentsLinkFrom(com.hps.july.persistence.DocumentsLink aDocumentsLinkFrom) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 100, _EJS_s); beanRef.secondaryRemoveDocumentsLinkFrom(aDocumentsLinkFrom); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 100, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondaryRemoveDocumentsLinkTo */ public void secondaryRemoveDocumentsLinkTo(com.hps.july.persistence.DocumentsLink aDocumentsLinkTo) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 101, _EJS_s); beanRef.secondaryRemoveDocumentsLinkTo(aDocumentsLinkTo); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 101, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetContragent */ public void secondarySetContragent(com.hps.july.persistence.Organization aContragent) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 102, _EJS_s); beanRef.secondarySetContragent(aContragent); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 102, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetFrom */ public void secondarySetFrom(com.hps.july.persistence.StoragePlace aFrom) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 103, _EJS_s); beanRef.secondarySetFrom(aFrom); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 103, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetOwner */ public void secondarySetOwner(com.hps.july.persistence.Organization anOwner) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 104, _EJS_s); beanRef.secondarySetOwner(anOwner); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 104, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetStorageManager */ public void secondarySetStorageManager(com.hps.july.persistence.Worker aStorageManager) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 105, _EJS_s); beanRef.secondarySetStorageManager(aStorageManager); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 105, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * secondarySetTo */ public void secondarySetTo(com.hps.july.persistence.StoragePlace aTo) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 106, _EJS_s); beanRef.secondarySetTo(aTo); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 106, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setBlankdate */ public void setBlankdate(java.sql.Date newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 107, _EJS_s); beanRef.setBlankdate(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 107, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setBlankindex */ public void setBlankindex(int newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 108, _EJS_s); beanRef.setBlankindex(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 108, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setBlanknumber */ public void setBlanknumber(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 109, _EJS_s); beanRef.setBlanknumber(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 109, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setContragent */ public void setContragent(com.hps.july.persistence.Organization aContragent) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 110, _EJS_s); beanRef.setContragent(aContragent); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 110, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setDocument */ public void setDocument(int newDocument) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 111, _EJS_s); beanRef.setDocument(newDocument); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 111, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setDocumentState */ public void setDocumentState(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 112, _EJS_s); beanRef.setDocumentState(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 112, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setFrom */ public void setFrom(com.hps.july.persistence.StoragePlace aFrom) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 113, _EJS_s); beanRef.setFrom(aFrom); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 113, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setInsuranceact */ public void setInsuranceact(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 114, _EJS_s); beanRef.setInsuranceact(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 114, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setInsurancedate */ public void setInsurancedate(java.sql.Date newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 115, _EJS_s); beanRef.setInsurancedate(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 115, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setInsuranseMan */ public void setInsuranseMan(java.lang.String newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 116, _EJS_s); beanRef.setInsuranseMan(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 116, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setIsautodoc */ public void setIsautodoc(boolean newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 117, _EJS_s); beanRef.setIsautodoc(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 117, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setNeedapprove */ public void setNeedapprove(boolean newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 118, _EJS_s); beanRef.setNeedapprove(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 118, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setOperator */ public void setOperator(java.lang.Integer newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 119, _EJS_s); beanRef.setOperator(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 119, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setOwner */ public void setOwner(com.hps.july.persistence.Organization anOwner) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 120, _EJS_s); beanRef.setOwner(anOwner); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 120, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setParentdocument */ public void setParentdocument(java.lang.Integer newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 121, _EJS_s); beanRef.setParentdocument(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 121, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setPrjstatus */ public void setPrjstatus(java.lang.String newPrjstatus) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 122, _EJS_s); beanRef.setPrjstatus(newPrjstatus); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 122, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setProjectid */ public void setProjectid(java.lang.Integer newProjectid) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 123, _EJS_s); beanRef.setProjectid(newProjectid); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 123, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setShowtouser */ public void setShowtouser(boolean newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 124, _EJS_s); beanRef.setShowtouser(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 124, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setStorageManager */ public void setStorageManager(com.hps.july.persistence.Worker aStorageManager) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 125, _EJS_s); beanRef.setStorageManager(aStorageManager); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 125, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setTo */ public void setTo(com.hps.july.persistence.StoragePlace aTo) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 126, _EJS_s); beanRef.setTo(aTo); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 126, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setTo2 */ public void setTo2(java.lang.Integer newValue) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 127, _EJS_s); beanRef.setTo2(newValue); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 127, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * setVisualtype */ public void setVisualtype(java.lang.Integer newVisualtype) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 128, _EJS_s); beanRef.setVisualtype(newVisualtype); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 128, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } /** * _copyToEJB */ public void _copyToEJB(java.util.Hashtable arg0) throws java.rmi.RemoteException { EJSDeployedSupport _EJS_s = getDeployedSupport(); try { com.hps.july.persistence.ContractBean beanRef = (com.hps.july.persistence.ContractBean)container.preInvoke(this, 129, _EJS_s); beanRef._copyToEJB(arg0); } catch (java.rmi.RemoteException ex) { _EJS_s.setUncheckedException(ex); } catch (Throwable ex) { _EJS_s.setUncheckedException(ex); throw new java.rmi.RemoteException("bean method raised unchecked exception", ex); } finally { try{ container.postInvoke(this, 129, _EJS_s); } finally { putDeployedSupport(_EJS_s); } } return ; } }
[ "ildar66@inbox.ru" ]
ildar66@inbox.ru
24ae1986a110b406c9d29748267873c828dc79e6
0e13fa19ef79cedbf29555b6babf092107f312e1
/src/main/java/br/com/jpaestudo/entity/Address.java
d61d39b332bf2bda03b2c8b55e0a82d2ac6b6536
[]
no_license
k4du/-JPAStudy
eb91b809a989b84fe165b5c257ddf4208faa49b4
171588f2300b013df7eea630595190a2ad7258e6
refs/heads/master
2021-01-19T01:56:59.460382
2017-04-05T02:25:47
2017-04-05T02:25:47
87,256,360
0
0
null
null
null
null
UTF-8
Java
false
false
2,261
java
package br.com.jpaestudo.entity; import javax.persistence.*; import java.io.Serializable; import java.util.List; @Entity @Table(name = "ADDRESSES") public class Address implements Serializable { public enum TypeAddress{ COMERCIAL, RESIDENCIAL } @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name = "ID_ADDRESS") private Long id; @Column(name = "CITY", nullable = false) private String city; @Column(name = "STREET", nullable = false) private String street; @Column(name = "TYPE_ADDRESS", nullable = false) @Enumerated(EnumType.STRING) private TypeAddress typeAddress; @ManyToMany(fetch = FetchType.EAGER) @JoinTable( name="PERSONS_ADDRESSES", joinColumns = @JoinColumn(name="ID_ADDRESS"), inverseJoinColumns = @JoinColumn(name = "ID_PERSON") ) private List<Person> persons; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getCity() { return city; } public void setCity(String city) { this.city = city; } public String getStreet() { return street; } public void setStreet(String street) { this.street = street; } public TypeAddress getTypeAddress() { return typeAddress; } public void setTypeAddress(TypeAddress typeAddress) { this.typeAddress = typeAddress; } public List<Person> getPersons() { return persons; } public void setPersons(List<Person> persons) { this.persons = persons; } @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof Address)) return false; Address address = (Address) o; return getId().equals(address.getId()); } @Override public int hashCode() { return getId().hashCode(); } @Override public String toString() { return "Address{" + "id=" + id + ", city='" + city + '\'' + ", street='" + street + '\'' + ", typeAddress=" + typeAddress + ", persons=" + persons + '}'; } }
[ "carlos.couto@efabrika.com.br" ]
carlos.couto@efabrika.com.br
ab9ccaeb95647a63dc4038d1d72a2e44f544c7b7
eb8e3a6976ece6000e490dd4b3adc6fbcf06ad24
/PhotoGallery31/app/src/main/java/com/dyr/photogallery/PollService.java
0da4749caf8c017a6aa2263cc5ef92c67f60da67
[]
no_license
yanrong/android-programming-1st
ea0fe805f58c3abfc9de5ea4fec338600371704a
2ab6269df351a18865749aa4cc69a7713f15706c
refs/heads/master
2020-04-17T07:47:39.666040
2019-08-08T15:50:47
2019-08-08T15:50:47
166,384,593
0
0
null
null
null
null
UTF-8
Java
false
false
4,283
java
package com.dyr.photogallery; import android.app.Activity; import android.app.AlarmManager; import android.app.IntentService; import android.app.Notification; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.content.SharedPreferences; import android.content.res.Resources; import android.net.ConnectivityManager; import android.preference.PreferenceManager; import android.support.v4.app.NotificationCompat; import android.util.Log; import java.util.ArrayList; public class PollService extends IntentService { private static final String TAG = "PollService"; private static final int POLL_INTERVAL = 1000 * 60 * 15; public static final String PREF_IS_ALARM_ON = "isAlarmOn"; public static final String ACTION_SHOW_NOTIFICATION = "com.dyr.photogallery.SHOW_NOTIFICATION"; public static final String PERM_PRIVATE = "com.dyr.photogallery.PRIVATE"; public PollService(){ super(TAG); } @Override protected void onHandleIntent(Intent intent) { ConnectivityManager cm = (ConnectivityManager)getSystemService(Context.CONNECTIVITY_SERVICE); @SuppressWarnings("deprecation") boolean isNetWorkAvailable = cm.getBackgroundDataSetting() && (cm.getActiveNetworkInfo() != null); if(!isNetWorkAvailable){ return; } SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this); String query = prefs.getString(FlickerFetchr.PREF_SEARCH_QUERY, null); String lastResultId = prefs.getString(FlickerFetchr.PREF_LAST_RESULT_ID, null); ArrayList<GalleryItem> items; if(query != null){ items = new FlickerFetchr().search(query); }else{ items = new FlickerFetchr().fetchItems(); } if(items.size() == 0){ return; } String resultId = items.get(0).getId(); if(!resultId.equals(lastResultId)){ Log.i(TAG,"Got a new result: " + resultId); Resources r =getResources(); PendingIntent pi = PendingIntent.getActivity(this, 0, new Intent(this, PhotoGalleryActivity.class), 0); Notification notification = new NotificationCompat.Builder(this) .setTicker(r.getString(R.string.new_picture_title)) .setSmallIcon(android.R.drawable.ic_menu_report_image) .setContentTitle(r.getString(R.string.new_picture_title)) .setContentText(r.getString(R.string.new_picture_text)) .setContentIntent(pi) .setAutoCancel(true) .build(); showBackgroundNotification(0, notification); }else{ Log.i(TAG,"Got a old result: " + resultId); } prefs.edit().putString(FlickerFetchr.PREF_LAST_RESULT_ID, resultId).commit(); Log.i(TAG,"Received an intent: " + intent); } public static void setServiceAlarm(Context context, boolean isOn){ Intent i = new Intent(context, PollService.class); PendingIntent pi = PendingIntent.getService(context, 0, i,0); AlarmManager alarmManger = (AlarmManager)context.getSystemService(Context.ALARM_SERVICE); if(isOn){ alarmManger.setRepeating(AlarmManager.RTC, System.currentTimeMillis(), POLL_INTERVAL, pi); }else{ alarmManger.cancel(pi); pi.cancel(); } PreferenceManager.getDefaultSharedPreferences(context) .edit().putBoolean(PollService.PREF_IS_ALARM_ON, isOn) .commit(); } public static boolean isServiceAlarmOn(Context context){ Intent i = new Intent(context, PollService.class); PendingIntent pi = PendingIntent.getService(context, 0, i, PendingIntent.FLAG_NO_CREATE); return pi != null; } void showBackgroundNotification(int requestCode, Notification notification){ Intent i = new Intent(ACTION_SHOW_NOTIFICATION); i.putExtra("REQUEST_CODE", requestCode); i.putExtra("NOTIFICATION", notification); sendOrderedBroadcast(i, PERM_PRIVATE, null, null, Activity.RESULT_OK, null, null); } }
[ "yanrongdu@gmail.com" ]
yanrongdu@gmail.com
4f2607dce9fbdd23dfc5d07b657c6e35228e981c
159f71867e9a1481de5e810ac76420dd98fe1818
/src/main/java/ac/cr/una/backend/service/EnfermedadesService.java
68ab10d47453243eaa6ca6be912dc8cfa3c4bbd2
[]
no_license
GaboQuesada/ProyectoHMMJN-server
0662f2291b2d9713bc82a40c348012b7dd98626b
f745705ad1c58b220b596b2f1dc0beb7fbd3c90b
refs/heads/master
2021-12-26T20:07:06.300607
2021-12-20T20:14:57
2021-12-20T20:14:57
80,802,390
0
0
null
2021-12-20T20:14:57
2017-02-03T06:10:38
Java
UTF-8
Java
false
false
389
java
package ac.cr.una.backend.service; import ac.cr.una.backend.model.Enfermedades; import java.util.List; /** * * @author Gabo Quesada */ public interface EnfermedadesService { public List<Enfermedades> getObservacionesByid(int id); public Enfermedades createEnfermedades(Enfermedades observaciones); public Enfermedades UpdateEnfermedades(Enfermedades observaciones); }
[ "gabrielquesadasanchez@gmail.com" ]
gabrielquesadasanchez@gmail.com
88573935782188b836b561999bb5d4ad5996cb06
e9affefd4e89b3c7e2064fee8833d7838c0e0abc
/aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/transform/JsonTokenTypeConfigurationJsonUnmarshaller.java
a9a0eca8d9c530a94d670a4c600cc761107a5358
[ "Apache-2.0" ]
permissive
aws/aws-sdk-java
2c6199b12b47345b5d3c50e425dabba56e279190
bab987ab604575f41a76864f755f49386e3264b4
refs/heads/master
2023-08-29T10:49:07.379135
2023-08-28T21:05:55
2023-08-28T21:05:55
574,877
3,695
3,092
Apache-2.0
2023-09-13T23:35:28
2010-03-22T23:34:58
null
UTF-8
Java
false
false
3,165
java
/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.kendra.model.transform; import java.math.*; import javax.annotation.Generated; import com.amazonaws.services.kendra.model.*; import com.amazonaws.transform.SimpleTypeJsonUnmarshallers.*; import com.amazonaws.transform.*; import com.fasterxml.jackson.core.JsonToken; import static com.fasterxml.jackson.core.JsonToken.*; /** * JsonTokenTypeConfiguration JSON Unmarshaller */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class JsonTokenTypeConfigurationJsonUnmarshaller implements Unmarshaller<JsonTokenTypeConfiguration, JsonUnmarshallerContext> { public JsonTokenTypeConfiguration unmarshall(JsonUnmarshallerContext context) throws Exception { JsonTokenTypeConfiguration jsonTokenTypeConfiguration = new JsonTokenTypeConfiguration(); int originalDepth = context.getCurrentDepth(); String currentParentElement = context.getCurrentParentElement(); int targetDepth = originalDepth + 1; JsonToken token = context.getCurrentToken(); if (token == null) token = context.nextToken(); if (token == VALUE_NULL) { return null; } while (true) { if (token == null) break; if (token == FIELD_NAME || token == START_OBJECT) { if (context.testExpression("UserNameAttributeField", targetDepth)) { context.nextToken(); jsonTokenTypeConfiguration.setUserNameAttributeField(context.getUnmarshaller(String.class).unmarshall(context)); } if (context.testExpression("GroupAttributeField", targetDepth)) { context.nextToken(); jsonTokenTypeConfiguration.setGroupAttributeField(context.getUnmarshaller(String.class).unmarshall(context)); } } else if (token == END_ARRAY || token == END_OBJECT) { if (context.getLastParsedParentElement() == null || context.getLastParsedParentElement().equals(currentParentElement)) { if (context.getCurrentDepth() <= originalDepth) break; } } token = context.nextToken(); } return jsonTokenTypeConfiguration; } private static JsonTokenTypeConfigurationJsonUnmarshaller instance; public static JsonTokenTypeConfigurationJsonUnmarshaller getInstance() { if (instance == null) instance = new JsonTokenTypeConfigurationJsonUnmarshaller(); return instance; } }
[ "" ]
bb77e6f08dd50a5c8317c47227b3668f24cd6754
261db1a560473a2d085233b7b4a3fb8b2506717a
/modules/swagger-core/src/test/java/io/swagger/jackson/package-info.java
eaadf892092c39ed53c512eb56611c5d377546e5
[ "Apache-2.0" ]
permissive
castlight/swagger-core
3dbc762b31006122e548b48bfbe062312fc7c20d
10932ea40b9d36d951a4563baeba1892841a3c27
refs/heads/master
2023-06-27T02:10:18.795783
2021-07-12T03:48:58
2021-07-12T03:48:58
46,149,186
1
1
Apache-2.0
2023-06-14T22:29:06
2015-11-13T21:49:53
Java
UTF-8
Java
false
false
114
java
@javax.xml.bind.annotation.XmlSchema(namespace = "http://io.swagger/jackson/package") package io.swagger.jackson;
[ "mmyneni@castlighthealth.com" ]
mmyneni@castlighthealth.com
f444bc1b33feaabf76ac25cb451d02a1c20f302c
80476dcd1cf607fa33efc42e39c75af689066825
/nascentkit/src/main/java/com/nascentdigital/device/CameraView.java
732c8477933d9d9a249eb5a874b3333981f4329a
[ "MIT" ]
permissive
nascentdigital/nascentkit-android
e3fe3063c1414851aefa384df65005fa77f40c7a
e50131ab5439f5dad9f67bc5bbec1a53406fd418
refs/heads/master
2020-03-30T22:22:46.659955
2018-10-20T18:01:20
2018-10-20T18:01:20
151,664,395
0
0
null
null
null
null
UTF-8
Java
false
false
7,825
java
package com.nascentdigital.device; import android.content.Context; import android.graphics.Bitmap; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.util.AttributeSet; import android.util.Log; import android.util.Size; import android.widget.FrameLayout; import com.nascentdigital.widget.AspectTextureView; import io.reactivex.Observable; import io.reactivex.Single; import io.reactivex.android.schedulers.AndroidSchedulers; import io.reactivex.disposables.CompositeDisposable; import io.reactivex.disposables.Disposable; import io.reactivex.subjects.BehaviorSubject; public class CameraView extends FrameLayout { public enum State { STARTING, STARTED, STOPPING, STOPPED, ERROR } private static final String TAG = "nascent/CameraView"; private final AspectTextureView _cameraPreview; private final CompositeDisposable _cameraPreviewSubscriptions; private CameraPosition _cameraPosition; private CameraFeed _cameraFeed; private Disposable _cameraFeedSubscription; private final Object _stateLock; private final BehaviorSubject<State> _state$; private State _state; public CameraView(@NonNull Context context) { this(context, null); } public CameraView(@NonNull Context context, @Nullable AttributeSet attributes) { this(context, attributes, 0); } public CameraView(@NonNull Context context, @Nullable AttributeSet attributes, int style) { // call base constructor super(context, attributes, style); Log.d(TAG, "creating camera view"); // initialize instance variables _cameraPreview = new AspectTextureView(context); _cameraPreviewSubscriptions = new CompositeDisposable(); _stateLock = new Object(); _state$ = BehaviorSubject.createDefault(_state = State.STOPPED); // initialize subviews _cameraPreview .setLayoutParams(new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); addView(_cameraPreview); } public State getState() { synchronized (_stateLock) { return _state; } } private void setState(State state) { synchronized (_stateLock) { _state = state; _state$.onNext(state); } } private void setState(Exception error) { synchronized (_stateLock) { _state = State.ERROR; _state$.onError(error); } } public Observable<State> observeState() { synchronized (_stateLock) { return _state$.distinctUntilChanged(); } } public Bitmap getPreviewBitmap() { Bitmap bitmap = _cameraPreview.getBitmap(); return bitmap; } public Single<Bitmap> getPhoto() { // fail if feed isn't active if (_cameraFeed == null) { return Single.error(new IllegalStateException( "CameraPhoto can not be taken until started.")); } else { return _cameraFeed.takePhoto(); } } public void start(CameraPosition cameraPosition) { // skip if there's an active feed already if (_cameraFeed != null) { Log.d(TAG, "ignoring start() - already active"); return; } Log.d(TAG, "starting CameraView"); // update state setState(State.STARTING); // capture camera position _cameraPosition = cameraPosition; // skip if the preview is ready if (!_cameraPreview.isAvailable()) { Log.d(TAG, "deferring start() when preview isn't active"); return; } // bind to camera feed bindToFeed(); } public void stop() { // skip if there's no active feed if (_cameraFeed == null) { Log.d(TAG, "ignoring stop() - not active"); // update state setState(State.STOPPED); // stop processing return; } Log.d(TAG, "stopping CameraView"); // update state setState(State.STOPPING); Log.d(TAG, "unsubscribing from CameraFeed events"); // clear subscriptions _cameraFeedSubscription.dispose(); _cameraFeedSubscription = null; Log.d(TAG, "stopping CameraFeed"); // stop camera feed try { // stop feed _cameraFeed.stop(); _cameraFeed = null; // update state setState(State.STOPPED); } // handler error catch (DeviceAccessException e) { // print stack trace e.printStackTrace(); // update state setState(e); } } @Override protected void onAttachedToWindow() { Log.d(TAG, "subscribing to preview TextureView events"); // subscribe to camera preview events _cameraPreviewSubscriptions.addAll( // notify when preview availability / size changes _cameraPreview.observeAvailable() .subscribe(this::onCameraPreviewAvailableChanged), // notify when preview size changes _cameraPreview.observeSize() .subscribe(this::onCameraPreviewSizeChanged) ); // call base implementation super.onAttachedToWindow(); } @Override protected void onDetachedFromWindow() { Log.d(TAG, "unsubscribing from preview TextureView events"); // unsubscribe from camera preview events _cameraPreviewSubscriptions.clear(); // call base implementation super.onDetachedFromWindow(); } private void bindToFeed() { Log.d(TAG, "subscribing to CameraFeed events"); // create feed _cameraFeed = new CameraFeed(getContext()); // monitor camera feed changes (ensure callbacks occur on UI thread) _cameraFeedSubscription = _cameraFeed.observeState() .subscribeOn(AndroidSchedulers.mainThread()) .subscribe(this::onCameraFeedChanged); // start feed try { Log.d(TAG, "starting CameraFeed"); _cameraFeed.start(_cameraPosition, _cameraPreview); } // handle error catch (Exception e) { // print stack e.printStackTrace(); // update state setState(e); } } private void onCameraPreviewAvailableChanged(Boolean available) { Log.d(TAG, "camera preview available: " + available); // ignore if not active if (getState() != State.STARTING) { return; } // start if available if (available) { bindToFeed(); } // or handle case where camera preview is disposed, but feed is active else if (_cameraFeed != null) { Log.w(TAG, "camera preview texture destroyed before feed"); } } private void onCameraPreviewSizeChanged(Size size) { Log.d(TAG, "camera preview size changed: " + size); // update preview transform if feed is active if (_cameraFeed != null) { _cameraFeed.updatePreviewTransform(_cameraPreview); } } private void onCameraFeedChanged(CameraFeed.State state) { // handle changes to camera feed state switch (state) { // update state when connected case CONNECTED: Log.d(TAG, "CameraFeed connected"); setState(State.STARTED); break; default: Log.d(TAG, "Unhandled CameraFeed state: " + state); break; } } }
[ "simeon.dedios@gmail.com" ]
simeon.dedios@gmail.com
22bcf8edd105e5393d79f6d014fb22936038d85d
dc8a8d3ac786cc17ac834bfad0572dcdc8ac6c7b
/xgb-boot/boot-pay/src/main/java/com/xgb/heliPay/quickPay/entity/response/CreateOrderResponseVo.java
89e3c675010d16150a87bcde9a752ef2609e2697
[]
no_license
dg802325/xgb-java
afac7d0b4c42800f632c6445dbf4927df0e7a214
7ffd49b27e0157c6c3441eaf969536aa633637ee
refs/heads/master
2023-01-09T12:06:33.045890
2020-05-26T02:35:19
2020-05-26T02:35:19
183,795,495
2
0
null
null
null
null
UTF-8
Java
false
false
1,431
java
package com.xgb.heliPay.quickPay.entity.response; import com.xgb.heliPay.quickPay.annotation.SignExclude; /** * Created by heli50 on 2017/4/14. */ public class CreateOrderResponseVo { private String rt1_bizType; private String rt2_retCode; private String rt3_retMsg; private String rt4_customerNumber; private String rt5_orderId; @SignExclude private String sign; public String getRt1_bizType() { return rt1_bizType; } public void setRt1_bizType(String rt1_bizType) { this.rt1_bizType = rt1_bizType; } public String getRt2_retCode() { return rt2_retCode; } public void setRt2_retCode(String rt2_retCode) { this.rt2_retCode = rt2_retCode; } public String getRt3_retMsg() { return rt3_retMsg; } public void setRt3_retMsg(String rt3_retMsg) { this.rt3_retMsg = rt3_retMsg; } public String getRt4_customerNumber() { return rt4_customerNumber; } public void setRt4_customerNumber(String rt4_customerNumber) { this.rt4_customerNumber = rt4_customerNumber; } public String getRt5_orderId() { return rt5_orderId; } public void setRt5_orderId(String rt5_orderId) { this.rt5_orderId = rt5_orderId; } public String getSign() { return sign; } public void setSign(String sign) { this.sign = sign; } }
[ "295841112@qq.com" ]
295841112@qq.com
a7b704a009c946c240f7689d1816b755f4fafe4c
426dd90097b4508f08b98e46de3ee562750c2b3e
/suixingouShop/SuixingouStore/.svn/pristine/c4/c452fdb085a4c010f5c033733c9f835fe59805b3.svn-base
3c8b1caa333ab3699fd554f524b71874bc468ff7
[]
no_license
gitping/DesignPatterns
ef0ac6ecb5fd1a5e2cd05ead1c0ce149f404826b
b97481abe0b3e41efcf1a73c04b936ac100e5522
refs/heads/master
2021-01-11T08:16:31.083133
2017-03-21T05:42:49
2017-03-21T05:42:49
76,419,680
0
0
null
null
null
null
UTF-8
Java
false
false
10,001
package com.yto.zhang.util.iphoneDialog; import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Locale; import android.app.AlertDialog; import android.content.Context; import android.content.DialogInterface; import android.graphics.Typeface; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.LinearLayout; import android.widget.TextView; import com.yto.suixingoustore.R; import com.yto.zhang.util.resources.HaiResources; import com.yto.zhang.util.wheel.widget.OnWheelChangedListener; import com.yto.zhang.util.wheel.widget.WheelView; import com.yto.zhang.util.wheel.widget.adapters.AbstractWheelTextAdapter; import com.yto.zhang.util.wheel.widget.adapters.ArrayWheelAdapter; /** * 仿iphone的Dialog * * @author fiker * */ public class IphoneDialogDate extends AlertDialog { /** * 类型顾客日期选择 */ public final static int TYPE_CUSTOMER = 0x000ffee; /** * 类型卖家日期选择 */ public final static int TYPE_SELLER = TYPE_CUSTOMER + 1; private int type; private IphoneDialogView view; private LayoutInflater mInflater; private String dateFormat; private Calendar calendar; private Context context; private TextView textViewSeller, textViewCustomer; private LinearLayout linear_tips, linear_customer, linear_seller; private WheelView year = null, hours = null, minutes = null; // private String hours[] = new String[] { "8:00", "9:00", "10:00", "11:00", // "12:00", "13:00", // "14:00", "15:00", "16:00", "17:00", "18:00", "19:00", "20:00" }; private static String STATIC_HOURS[] = new String[] { "23时", "22时", "21时", "20时", "19时", "18时", "17时", "16时", "15时", "14时", "13时", "12时", "11时", "10时", "09时", "08时", "07时", "06时", "05时", "04时", "03时", "02时", "01时", "00时" }; private static String STATIC_MINUTES[] = new String[] { "00分", "05分", "10分", "15分", "20分", "25分", "30分", "35分", "40分", "45分", "50分", "55分" }; protected IphoneDialogDate(Context context, String[] hours) { super(context); this.context = context; if (hours != null) { STATIC_HOURS = hours; } else { } mInflater = LayoutInflater.from(this.context); view = (IphoneDialogView) mInflater.inflate( R.layout.dialog_iphone_date, null); } /** * * @param context * @param dateFormat * 根据类型不同,传入的日期格式也不同, 当选择类型为customer 传入的时间是期望送达时间的间隔, * 当选择类型为seller传入的时间为用户选择的期望送达时间 * @param type */ protected IphoneDialogDate(Context context, String dateFormat, int type) { super(context); this.type = type; this.context = context; this.dateFormat = dateFormat; SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm"); calendar = Calendar.getInstance(Locale.CHINA); if (type == TYPE_SELLER) { // 类型为卖家时,传入顾客期望时间 try { calendar.setTime(format.parse(dateFormat)); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } STATIC_HOURS = HaiResources.getTimeHoursList(dateFormat); STATIC_MINUTES = HaiResources.getTimeMinutesList(dateFormat); } else if (type == TYPE_CUSTOMER) { // 取顾客当前时间往后推指定的时间控件 long offset = Long.valueOf(dateFormat); Date d = new Date(System.currentTimeMillis() + offset); calendar.setTime(d); STATIC_HOURS = HaiResources.getTimeHoursList(format.format(d)); STATIC_MINUTES = HaiResources.getTimeMinutesList(format.format(d)); } mInflater = LayoutInflater.from(this.context); view = (IphoneDialogView) mInflater.inflate( R.layout.dialog_iphone_date, null); } @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(view); textViewSeller = (TextView) findViewById(R.id.tv_seller_time_dialog); textViewCustomer = (TextView) findViewById(R.id.tv_customer_time_dialog); linear_tips = (LinearLayout) findViewById(R.id.dialog_tips_panel); linear_customer = (LinearLayout) findViewById(R.id.dialog_customer_panel); linear_seller = (LinearLayout) findViewById(R.id.dialog_seller_panel); if (type == TYPE_CUSTOMER) { linear_tips.setVisibility(View.GONE); linear_seller.setVisibility(View.GONE); linear_customer.setVisibility(View.GONE); } else if (type == TYPE_SELLER) { linear_tips.setVisibility(View.VISIBLE); linear_seller.setVisibility(View.VISIBLE); linear_customer.setVisibility(View.VISIBLE); } textViewCustomer.setText(dateFormat + ""); textViewSeller.setText(dateFormat + ""); OnWheelChangedListener listener = new OnWheelChangedListener() { public void onChanged(WheelView wheel, int oldValue, int newValue) { textViewSeller.setText(getDateForShow()); } }; year = (WheelView) view.findViewById(R.id.year); hours = (WheelView) view.findViewById(R.id.hours); minutes = (WheelView) view.findViewById(R.id.minutes); // time int curHour = 0; hours.setViewAdapter(new DateArrayAdapters(context, STATIC_HOURS, curHour)); hours.setCurrentItem(curHour); hours.addChangingListener(listener); // set current time // Calendar calendar = Calendar.getInstance(Locale.CHINA); year.setViewAdapter(new DayArrayAdapter(context, calendar)); year.addChangingListener(listener); minutes.setViewAdapter(new DateArrayAdapters(context, STATIC_MINUTES, 0)); minutes.setCurrentItem(0); minutes.addChangingListener(listener); } @Override public void setTitle(CharSequence title) { view.setTitle(title); } public String getDate() { String date = getDateForShow() + ":00"; return date; } public String getDateForShow() { String date = ""; int yearIndex = year.getCurrentItem(); int hourIndex = hours.getCurrentItem(); int minuteIndex = minutes.getCurrentItem(); Calendar c = (Calendar) calendar.clone(); c.add(Calendar.DAY_OF_YEAR, yearIndex); String hours = STATIC_HOURS[hourIndex]; hours = hours.replaceAll("时", ""); if (Integer.valueOf(hours) < 10) { hours = "0" + hours; } String minutes = STATIC_MINUTES[minuteIndex]; minutes = minutes.replaceAll("分", ""); if (Integer.valueOf(minutes) < 10) { minutes = "0" + minutes; } int year = c.get(Calendar.YEAR); int month = c.get(Calendar.MONTH) + 1; int day = c.get(Calendar.DAY_OF_MONTH); String monthStr = "01"; if (month < 10) { monthStr = "0" + String.valueOf(month); } else { monthStr = String.valueOf(month); } String dayStr = "01"; if (day < 10) { dayStr = "0" + String.valueOf(day); } else { dayStr = String.valueOf(day); } date = String.valueOf(year) + "-" + monthStr + "-" + dayStr + " " + hours + ":" + minutes; return date; } @Override public void setButton(CharSequence text, final OnClickListener listener) { final Button button = (Button) view.findViewById(R.id.dialog_yes); button.setText(text); button.setVisibility(View.VISIBLE); button.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { listener.onClick(IphoneDialogDate.this, DialogInterface.BUTTON_POSITIVE); dismiss(); } }); super.setButton(text, listener); } @Override public void setButton2(CharSequence text, final OnClickListener listener) { final Button button = (Button) view.findViewById(R.id.dialog_no); button.setText(text); button.setVisibility(View.VISIBLE); button.setOnClickListener(new View.OnClickListener() { public void onClick(View view) { listener.onClick(IphoneDialogDate.this, DialogInterface.BUTTON_NEGATIVE); dismiss(); } }); super.setButton2(text, listener); } /** * Day adapter * */ private class DayArrayAdapter extends AbstractWheelTextAdapter { // Count of days to be shown private final int daysCount = 365; // Calendar Calendar c; /** * Constructor */ protected DayArrayAdapter(Context context, Calendar calendar) { super(context, R.layout.time2_day, NO_RESOURCE); this.c = calendar; setItemTextResource(R.id.time2_monthday); } @Override public View getItem(int index, View cachedView, ViewGroup parent) { int day = index; Calendar newCalendar = (Calendar) c.clone(); newCalendar.roll(Calendar.DAY_OF_YEAR, day); View view = super.getItem(index, cachedView, parent); TextView monthday = (TextView) view .findViewById(R.id.time2_monthday); DateFormat formats = new SimpleDateFormat("MMM dd"); monthday.setText(formats.format(newCalendar.getTime()) + "日"); if (day == 0) { monthday.setTextColor(0xFF31b00f); } else { monthday.setTextColor(0xFF111111); } return view; } @Override public int getItemsCount() { return daysCount + 1; } @Override protected CharSequence getItemText(int index) { return ""; } } /** * Adapter for string based wheel. Highlights the current value. */ private class DateArrayAdapters extends ArrayWheelAdapter<String> { // Index of current item int currentItem; // Index of item to be highlighted int currentValue; /** * 构造函数 */ public DateArrayAdapters(Context context, String[] items, int current) { super(context, items); this.currentValue = current; // setTextSize(16); } @Override protected void configureTextView(TextView view) { super.configureTextView(view); if (currentItem == currentValue) { // view.setTextColor(0xFF0000F0); view.setTextColor(0xFF31b00f); } view.setTextSize(20f); view.setTypeface(Typeface.SANS_SERIF); } @Override public View getItem(int index, View cachedView, ViewGroup parent) { currentItem = index; return super.getItem(index, cachedView, parent); } } }
[ "18673114229@163.com" ]
18673114229@163.com
2da9615522a96e2a4c0b7feda487012e78fcbf15
d4aba85df60dae4547c2235af0b8df945f2f1be1
/lingshi/src/lingshi/getway/filter/TokenCheckFilter.java
b6e0b0b69cf8d9aadee3a820bc882eb69894f43d
[]
no_license
MyAuntIsPost90s/lingshiframework
87e27a9e7d518a38a19cbe6c016929ec41901ed5
acd3ad89cd23c6791f468137cf88726ad7f163ab
refs/heads/master
2021-05-08T10:12:25.764656
2018-06-18T14:52:08
2018-06-18T14:52:08
119,833,482
2
2
null
null
null
null
UTF-8
Java
false
false
4,130
java
package lingshi.getway.filter; import java.io.IOException; import java.util.Arrays; import java.util.List; import javax.servlet.FilterChain; import javax.servlet.FilterConfig; import javax.servlet.ServletException; import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.alibaba.fastjson.JSON; import lingshi.convert.Convert; import lingshi.getway.model.MsgCode; import lingshi.getway.model.ResponseData; import lingshi.getway.token.LingShiTokenEnum.TokenStatus; import lingshi.getway.token.service.TokenMgrService; import lingshi.getway.token.service.impl.TokenMgrServiceMd5Impl; import lingshi.model.LingShiConfig; import lingshi.valid.StringValid; public class TokenCheckFilter implements javax.servlet.Filter { private List<String> allowpath; private Boolean iscross; @Override public void destroy() { // TODO Auto-generated method stub } @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { HttpServletRequest hRequest = (HttpServletRequest) request; HttpServletResponse hResponse = (HttpServletResponse) response; // 当开启跨域时 if (iscross == true) { hResponse.setHeader("Access-Control-Allow-Origin", hRequest.getHeader("Origin")); hResponse.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); hResponse.setHeader("Access-Control-Max-Age", "0"); hResponse.setHeader("Access-Control-Allow-Headers", "Origin, No-Cache, X-Requested-With, If-Modified-Since, Pragma, Last-Modified, Cache-Control, Expires, Content-Type, X-E4M-With,AppKey,AccessToken"); hResponse.setHeader("Access-Control-Allow-Credentials", "true"); hResponse.setHeader("XDomainRequestAllowed", "1"); // 过滤试探请求 if (hRequest.getMethod().toUpperCase().equals("OPTIONS")) { chain.doFilter(request, response); return; } } // 跳过校验 if (allowpath != null) { for (String item : allowpath) { if (hRequest.getRequestURL().toString().contains(item)) { chain.doFilter(request, response); return; } } } String appKey = hRequest.getHeader("AppKey"); String token = hRequest.getHeader("AccessToken"); ResponseData responseData = new ResponseData(); if (StringValid.isNullOrEmpty(appKey) || !appKey.equals(LingShiConfig.getInstance().getAppKey())) { responseData.fail("appKey错误,非法请求", null, MsgCode.TOKEN_FAIL); response.setContentType(response.getContentType().replace("text/html", "application/json")); response.getWriter().write(JSON.toJSONString(responseData)); response.getWriter().close(); return; } TokenMgrService tokenMgrService = new TokenMgrServiceMd5Impl(); TokenStatus tokenStatus = tokenMgrService.tokenCheck(token); if (tokenStatus == TokenStatus.FAIL) { responseData.fail("Token错误,非法请求", null, MsgCode.TOKEN_FAIL); response.setContentType(response.getContentType().replace("text/html", "application/json")); response.getWriter().write(JSON.toJSONString(responseData)); response.getWriter().close(); return; } if (tokenStatus == TokenStatus.EXP) { responseData.fail("Token已过期", null, MsgCode.TOKEN_FAIL); response.setContentType(response.getContentType().replace("text/html", "application/json")); response.getWriter().write(JSON.toJSONString(responseData)); response.getWriter().close(); return; } chain.doFilter(request, response); } @Override public void init(FilterConfig filterConfig) throws ServletException { String[] strs = filterConfig.getInitParameter("allowpath").split(","); this.allowpath = Arrays.asList(strs); System.out.println("Load allowpath:" + allowpath.toString()); // 是否开启跨域 String crossStr = filterConfig.getInitParameter("iscross"); iscross = Convert.toBoolean(crossStr); System.out.println("Load iscross:" + iscross); } }
[ "1126670571@qq.com" ]
1126670571@qq.com
c0717429e994ed24d67397c0a6ddd3020f420729
c5de33ac8f22c8a1876ffd4761bded03fd9630c1
/src/ems/org/mc4j/ems/connection/support/metadata/AbstractConnectionTypeDescriptor.java
42dcd3ae443a7c30e9fb39b69b55afa2b6c2be95
[]
no_license
rhq-project/ems
533805c83018d2ba9132782f2328f543e96c69e0
d582b934c60f3c49edbb14b776907252add6d727
refs/heads/master
2020-05-20T10:41:01.757095
2014-07-02T08:24:36
2014-07-02T08:24:36
null
0
0
null
null
null
null
UTF-8
Java
false
false
3,391
java
/* * Copyright 2002-2004 Greg Hinkle * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.mc4j.ems.connection.support.metadata; import java.io.File; import java.io.IOException; import java.net.MalformedURLException; import java.util.Iterator; import java.util.Map; import java.util.Properties; import java.util.jar.Attributes; import java.util.jar.JarFile; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; /** * @author Greg Hinkle (ghinkle@users.sourceforge.net), Sep 30, 2004 * @version $Revision: 629 $($Author: ianpspringer $ / $Date: 2011-10-28 23:44:26 +0200 (Fr, 28 Okt 2011) $) */ public abstract class AbstractConnectionTypeDescriptor implements ConnectionTypeDescriptor { private static Log log = LogFactory.getLog(AbstractConnectionTypeDescriptor.class); public String toString() { return getDisplayName(); } public boolean isUseManagementHome() { return false; } public String getServerVersion(File recognitionFile) { try { String version; JarFile recJarFile = new JarFile(recognitionFile); version = recJarFile.getManifest().getMainAttributes().getValue("Implementation-Version"); if (version == null) { Map attrMap = recJarFile.getManifest().getEntries(); for (Iterator iterator = attrMap.entrySet().iterator(); iterator.hasNext();) { Map.Entry entry = (Map.Entry) iterator.next(); String name = (String) entry.getKey(); Attributes attr = (Attributes) entry.getValue(); version = attr.getValue("Implementation-Version"); } } return version; } catch (MalformedURLException e) { log.warn("Could not determine server version from matched file " + recognitionFile.getAbsolutePath(),e); } catch (IOException e) { log.warn("Could not determine server version from matched file " + recognitionFile.getAbsolutePath(),e); } return null; } public String getExtrasLibrary() { return null; } public Properties getDefaultAdvancedProperties() { return new Properties(); } public boolean isUseChildFirstClassLoader() { return false; } public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof AbstractConnectionTypeDescriptor)) return false; final AbstractConnectionTypeDescriptor other = (AbstractConnectionTypeDescriptor) o; if (getDisplayName() != null ? !getDisplayName().equals(other.getDisplayName()) : other.getDisplayName() != null) return false; return true; } public int hashCode() { return (getDisplayName() != null ? getDisplayName().hashCode() : 0); } }
[ "hwr@pilhuhn.de" ]
hwr@pilhuhn.de
b88805ab98ca72fa987cb67dcbe3475029eb3ee4
575de9fae557763ec15de54b963a75dde35a499a
/CoreJava/src/array/twodimensional/Addition_2x2Metrix.java
bab7e5b67dfe5c069c5eb6dd49750bc7224b3195
[]
no_license
vanitanigade/CoreJava
34002f9c92b20abcbf422a9256cfa7fdf445f30f
881aa554c0a263942f65248cc9a74a967cb88e8d
refs/heads/master
2023-07-29T11:50:02.276391
2021-09-16T06:18:23
2021-09-16T06:18:23
399,734,870
0
0
null
null
null
null
UTF-8
Java
false
false
708
java
package array.twodimensional; public class Addition_2x2Metrix { public static void main(String[] args) { int a[][] = {{1,2},{3,4}}; //2D Array static initialization int b[][] = {{1,1},{1,1}}; int c[][] = new int[2][2]; //2x2 //creating another matrix to store the addition of 2 metrices //addition and printing addition of 2 metrices for(int i=0; i<=1; i++) { //no of rows for(int j=0; j<=1; j++) { // no of columns c[i][j] = a[i][j] + b[i][j]; // a[0][0] + b[0][0] = 1+1 = 2 System.out.print(c[i][j] + " "); } System.out.println(); } } } // a= 1 2 b= 1 1 a+b = 1+1 2+1 2 3 // 3 4 1 1 3+1 4+1 4 5
[ "61435@LAPTOP-DD8S79MB" ]
61435@LAPTOP-DD8S79MB
a4df3ee5cdf480cea9eaf011d260348b6d56d99a
ea1bcdca229b9bb3fba3e73b76f340b5b78be82c
/src/creational/prototype/example2/Command.java
6f8bc2fa4e8fc21e141c01c704a84082c1bb62a8
[]
no_license
DaleKocian/DesignPatterns
5a314608767a1f11ed9d7c12ef423afda09f36c2
f7b7688e1db7d76ca17bc2da07bb68306960e6bd
refs/heads/master
2021-01-10T19:19:14.014305
2013-12-13T10:53:58
2013-12-13T11:04:57
null
0
0
null
null
null
null
UTF-8
Java
false
false
125
java
package creational.prototype.example2; /** * Created by dkocian on 12/13/13. */ interface Command { void execute(); }
[ "dale.kocian@gmail.com" ]
dale.kocian@gmail.com
9c3d4e9a212e917b02c425c9fc6b10064b3c5b61
f58cf8125a5d3567fce7ac4bd419f65829c2b55f
/src/fr/ascadis/dao/IDAO.java
5c0e32665e9720d6d85a6b73f024012069653569
[]
no_license
cbrebion/tetris
7f5e909333d90ed166b86b2a63333e64da732db3
2ad9d6eb8892037525965b02e6207783899d1825
refs/heads/master
2021-01-19T17:05:39.491083
2017-08-22T12:49:49
2017-08-22T12:49:49
101,047,777
0
0
null
null
null
null
UTF-8
Java
false
false
227
java
package fr.ascadis.dao; import java.util.List; import fr.ascadis.model.Tetrimino; public interface IDAO<T> { public List<T> findAll(); public T find(T id); public T save(T obj); public void delete(T obj); }
[ "charles.brebion@gmail.com" ]
charles.brebion@gmail.com
327807337175ec8e0d32098687b73472b5699d07
41e83fba669f746ec6ea270d2fcf5f21fa5b6f81
/SimplePrograms/Hibernate/Hibernate7/src/main/java/OneToOneBidirectional/Employee.java
8b1163b63cc9d68e7ccf526dfefefab0cc0ca9e9
[]
no_license
PiotrJuchimowicz/Programs-Java
dcbfbe523de451eb36862d224a0974b8c9aa3186
4cf939ae7ebdff34270dc0efa5f59e09f82ed9b1
refs/heads/master
2022-07-13T22:27:53.660760
2020-02-18T21:31:17
2020-02-18T21:31:17
124,917,259
1
1
null
2022-06-21T00:18:03
2018-03-12T16:18:08
HTML
UTF-8
Java
false
false
1,552
java
package OneToOneBidirectional; import javax.persistence.*; @Entity @Table(name = "Employee") public class Employee { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private long id; @Column(name = "name") private String firstName; @Column(name = "surname") private String lastName; @Column(nullable = false) private int pesel; @OneToOne @JoinColumn(name = "ownerID") //Allows to change something about reference to joined collumn. In this case I've joined collumn from Address table(address below) private Address address; public Employee() { } public Employee(String firstName, String lastName, int pesel, Address address) { this.firstName = firstName; this.lastName = lastName; this.pesel = pesel; this.address = address; } public Address getAddress() { return address; } public void setAddress(Address address) { this.address = address; } public long getId() { return id; } public void setId(long id) { this.id = id; } public String getFirstName() { return firstName; } public void setFirstName(String firstName) { this.firstName = firstName; } public String getLastName() { return lastName; } public void setLastName(String lastName) { this.lastName = lastName; } public int getPesel() { return pesel; } public void setPesel(int pesel) { this.pesel = pesel; } }
[ "piotrjuchimowicz@gmail.com" ]
piotrjuchimowicz@gmail.com
af0c171a644073c32e7ed012fb66a668e2b54d2a
534be3fdd7348e064678511824c6f323309ff92d
/grubix2/src/br/ufla/dcc/grubix/simulator/event/CrossLayerDoubleResult.java
8ce4ce007685d4abb628c26b9745e58a048917c0
[]
no_license
PhilipOfMacedon/Grubix
5b854c83fc2ee4388f3be817eb7df3481981e7c4
076120c7d71c6de80bed88c1a649ff609601dffa
refs/heads/master
2022-11-29T20:09:41.215391
2020-08-14T10:51:54
2020-08-14T10:51:54
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,714
java
/******************************************************************************** This file is part of ShoX. ShoX is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ShoX is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with ShoX; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA Copyright 2006 The ShoX developers as defined under http://shox.sourceforge.net ********************************************************************************/ package br.ufla.dcc.grubix.simulator.event; /** * Like the super class, but with an additional double. * * @author Dirk Held */ public class CrossLayerDoubleResult extends CrossLayerResult { /** an additional double value. */ private double doubleVal; /** * class to describe a return value object containing an additional double value. * @param result the error code. * @param doubleVal an optional double value. */ public CrossLayerDoubleResult(int result, double doubleVal) { super(result); this.doubleVal = doubleVal; } /** @return the doubleVal. */ public final double getDoubleVal() { return doubleVal; } /** @param doubleVal the doubleVal to set. */ public final void setDoubleVal(double doubleVal) { this.doubleVal = doubleVal; } }
[ "filiperodrigues97@gmail.com" ]
filiperodrigues97@gmail.com
3170d826d776604eb4a5e91c941e6ecc1645c494
98e22ea6a10234e517b88e110cd7c25671438319
/supergo-parent/supergo-common/supergo-dao/src/main/java/com/supergo/mapper/ext/TbShopManagerMapperExt.java
38478546072fceed7ef8c80f75f1586231576d4c
[]
no_license
wangfus/huike-mall
e8ee1025e06d2952399db6b8cf1fbf8a6fc38525
075773a63b926f3a93e29996f1b6772bb5d995ea
refs/heads/master
2020-09-04T16:16:16.774148
2019-07-24T16:56:31
2019-07-24T16:56:31
null
0
0
null
null
null
null
UTF-8
Java
false
false
363
java
package com.supergo.mapper.ext; import java.util.List; import com.supergo.pojo.TbBusiness; import com.supergo.pojo.TbShop; import com.supergo.pojo.TbShopUser; public interface TbShopManagerMapperExt { List<TbShop> selectShop(TbBusiness business); List<TbShopUser> selectShopUserIdByBusinessId(Integer businessId); void accreditRole(Integer shopUserId); }
[ "jerryli_vip@163.com" ]
jerryli_vip@163.com
8a9c8ad974b6492654938bba747036e8571977e5
888c751c5509bad104dd996c51c0b55786d1db4a
/JavaMVCFrameworksSpring/05.TheRightWay/src/main/java/com/social/services/BikeServiceImpl.java
3892aa8892f5d0846c0714451219e01f9326a2e3
[]
no_license
vasilgramov/java-web
bdb25dd8e126aa96c3b4f40832a805880e0aa71b
0544f61be6927023753b659ffdb06c1a39c75736
refs/heads/master
2020-06-27T05:01:24.746846
2018-01-03T14:56:01
2018-01-03T14:56:01
97,046,513
0
0
null
null
null
null
UTF-8
Java
false
false
1,909
java
package com.social.services; import com.social.entities.Bike; import com.social.exceptions.BikeNotFoundException; import com.social.models.viewModels.BikeViewModel; import com.social.repositories.BikeRepository; import org.modelmapper.ModelMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.Pageable; import org.springframework.stereotype.Service; import java.util.ArrayList; import java.util.List; @Service public class BikeServiceImpl implements BikeService { private final BikeRepository bikeRepository; private final ModelMapper modelMapper; @Autowired public BikeServiceImpl( BikeRepository bikeRepository, ModelMapper modelMapper) { this.bikeRepository = bikeRepository; this.modelMapper = modelMapper; } @Override public BikeViewModel findById(long id) { Bike one = this.bikeRepository.findOne(id); if (one == null) { throw new BikeNotFoundException(); } return this.modelMapper.map(one, BikeViewModel.class); } @Override public List<BikeViewModel> findAll() { List<Bike> all = this.bikeRepository.findAll(); List<BikeViewModel> result = new ArrayList<>(); for (Bike bike : all) { result.add(this.modelMapper.map(bike, BikeViewModel.class)); } return result; } @Override public Page<BikeViewModel> findAll(Pageable pageable) { Page<Bike> bikes = this.bikeRepository.findAll(pageable); List<BikeViewModel> result = new ArrayList<>(); for (Bike bike : bikes) { result.add(this.modelMapper.map(bike, BikeViewModel.class)); } return new PageImpl<>(result, pageable, bikes.getTotalElements()); } }
[ "gramovv@gmail.com" ]
gramovv@gmail.com
213e535682d58ad8a7817bbece07f16495f51eee
c656eff1aec7055728020a8349bd653ff5e3f150
/app/src/main/java/com/example/project/Request.java
c5fd4db91c2750b12d0d67a842e2ebe48d9b0fc8
[]
no_license
YunJing4411/project
44c5b7c271dc728c7af1bd3b5b039e6230d0666e
cf40bce4f10a92a32851c9e54416c80b9c2ce80f
refs/heads/master
2020-11-26T13:04:47.724374
2019-12-26T11:56:42
2019-12-26T11:56:42
229,079,713
0
0
null
null
null
null
UTF-8
Java
false
false
1,189
java
package com.example.project; import java.util.List; public class Request { private String Email; private String Name; private String address; private String total; private List<Order> Pruduct; public Request() { } public Request(String email, String name, String address, String total, List<Order> Pruduct) { Email = email; Name = name; this.address = address; this.total = total; this.Pruduct = Pruduct; } public String getEmail() { return Email; } public void setEmail(String email) { Email = email; } public String getName() { return Name; } public void setName(String name) { Name = name; } public String getAddress() { return address; } public void setAddress(String address) { this.address = address; } public String getTotal() { return total; } public void setTotal(String total) { this.total = total; } public List<Order> getPruduct() { return Pruduct; } public void setPruduct(List<Order> Pruduct) { this.Pruduct = Pruduct; } }
[ "d0683320@mail.fcu.edu.tw" ]
d0683320@mail.fcu.edu.tw
c2085b18ed17cda6356e81dc341ea606f06d86fc
19ad8752ade86f9ac01b0ad7076ac350ece34db1
/springboot-neo4j/src/main/java/com/example/controller/Neo4jController.java
35977f270a21b6aea3d7e1ff5e9d76c813423f7f
[]
no_license
jiteshpp/jneo4xexamples
3d0a723cfafbf0bfcec61a051e4dd2d8f7b0c15f
a4c5242d52b7763379e250cd1099b21e1aded1fa
refs/heads/master
2021-03-30T21:11:25.681402
2018-03-16T11:08:59
2018-03-16T11:08:59
124,542,482
0
0
null
null
null
null
UTF-8
Java
false
false
840
java
package com.example.controller; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import com.example.Model.Department; import com.example.Model.Employee; /** * * @author Jitesh * */ public class Neo4jController { @RequestMapping("/addEmployee") private boolean addEmployee (@RequestBody Employee employees) { return false; } @RequestMapping("/deleteEmp") private boolean deleteEmployee (@RequestBody int empid) { return false; } @RequestMapping("/addDept") private boolean addDept (@RequestBody Department department) { return false; } @RequestMapping("/deleteDept") private boolean deleteDept (@RequestBody int deptId) { return false; } }
[ "Jitesh Pathak@DESKTOP-MUBC4CB" ]
Jitesh Pathak@DESKTOP-MUBC4CB
d54f9190446cca7ce85c976a35aabed6e11a3501
8baedf16db9fd15daeeb0326df5b169249072d6e
/ConnectFour/src/impl/ConnectFourGame.java
33255424c548e6591ec5c92a5b1bd336bd5de7d7
[]
no_license
js6450/SoftwareEngineering
6d3f94809741e699e85bb92c83a7808c4ff8b698
2c13211915beabc112a9f96ecb1f90c750987f58
refs/heads/master
2021-01-10T09:23:21.455822
2016-03-02T10:27:09
2016-03-02T10:27:09
52,953,247
0
0
null
null
null
null
UTF-8
Java
false
false
3,792
java
package impl; import java.util.ArrayList; import api.Game; import api.Game.Token; import exc.GameStateException; import exc.IllegalMoveException; public class ConnectFourGame extends Game{ //current player token Token current; ArrayList<Token> players = new ArrayList<Token>(); public ConnectFourGame() { //create game of 6 rows and 9 columns super(6,9); //initialize surface super.surface = new Token[super.getRows()][super.getColumns()]; //initialize surface with empty tokens for(int i = 0; i < super.getRows(); i++){ for(int j = 0; j < super.getColumns(); j++){ super.surface[i][j] = Token.EMPTY; } } players.add(Token.RED); players.add(Token.BLUE); //set current player current = players.listIterator().next(); } @Override public void placeDisk(int col) throws GameStateException, IllegalMoveException { // catch out of bounds and negative input if(col >= super.getColumns() || col < 0){ throw new IllegalMoveException(); } //place disk only when Token is EMPTY for(int i = 0; i < super.getRows(); i++){ if(super.surface[i][col] == Token.EMPTY){ super.surface[i][col] = current; //change current player only if no player has won this round if(!isGameOver()){ current = nextPlayer(); } return; } } throw new IllegalMoveException(); } @Override public Token currentPlayer() { return current; } @Override public Token getWinner() throws GameStateException { return current; } @Override public Token nextPlayer() throws GameStateException { if(current == Token.RED){ return Token.BLUE; } else{ return Token.RED; } } //check the next four spaces in the row to the right private boolean checkRow(int row, int col){ Token token = surface[row][col]; int counter = 0; //don't check for anything if column number is higher than or equal to than 6 if(col >=6){ return false; } for(int i = 0; i < 4; i++){ if(surface[row][col+i] == token){ counter++; } } if(counter == 4){ return true; } else{ return false; } } //check the top next four space in the column private boolean checkCol(int row, int col){ Token token = surface[row][col]; int counter = 0; //don't check for anything if the row is higher than or equal to 3 if(row >= 3){ return false; } for(int i = 0; i < 4; i++){ if(surface[row+i][col] == token){ counter++; } } if(counter == 4){ return true; } else{ return false; } } //check the next four spaces in the diagonal right private boolean checkDiRight(int row, int col){ Token token = surface[row][col]; int counter = 0; //set boundary to prevent overflow if(row >= 3 || col >= 6){ return false; } for(int i = 0; i < 4; i++){ if(surface[row+i][col+i] == token){ counter++; } } if(counter == 4){ return true; } else{ return false; } } //check the next four spaces in the diagonal left private boolean checkDiLeft(int row, int col){ Token token = surface[row][col]; int counter = 0; //set boundary to prevent overflow if(row >= 2 || col <= 2){ return false; } for(int i = 0; i < 4; i++){ if(surface[row+i][col-i] == token){ counter++; } } if(counter == 4){ return true; } else{ return false; } } @Override public boolean isGameOver() { for(int i = 0; i < super.getRows(); i++){ for(int j = 0; j < super.getColumns(); j++){ //only check for spaces with disk if(super.surface[i][j] != Token.EMPTY){ if(checkRow(i, j)){ return true; } if(checkCol(i, j)){ return true; } if(checkDiRight(i, j)){ return true; } if(checkDiLeft(i, j)){ return true; } } } } return false; } }
[ "js6450@nyu.edu" ]
js6450@nyu.edu
571b7682e67ee036b4077e93fee5f4cc0f1581be
09d86fa08ccb61acec898a8a3a94d35b6006e097
/system/system-webapp/src/main/java/modules/system/controller/LogisticsController.java
bb678c90b7c6916e24b1134c8a62c5973062add4
[ "Apache-2.0" ]
permissive
leilei53401/yServer
c75d9e07d054c24e032da55904e2bbf7fbb8074b
438e78793b5a67dadbc145bf9a458b6602d2d997
refs/heads/master
2020-05-07T17:42:47.799923
2017-09-09T16:02:32
2017-09-09T16:02:32
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,334
java
package modules.system.controller; import modules.system.controller.base.SysBaseController; import modules.system.model.Logistics; import modules.system.svc.LogisticsService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.yserver.core.model.Pagination; import org.yserver.utils.StringUtils; import javax.servlet.http.HttpServletResponse; /** * Description: LogisticsController.<br> * Date: 2016/9/19 14:40<br> * Author: ysj */ @Controller @RequestMapping(value = "${adminPath}/logistics") public class LogisticsController extends SysBaseController<Logistics, LogisticsService> { private static final String INDEX_PATH = "system/logistics"; @Autowired private LogisticsService service; @Override protected LogisticsService getService() { return service; } @Override protected String indexMain() { return INDEX_PATH + "/index"; } @Override protected String indexForm() { return INDEX_PATH + "/form"; } @ModelAttribute public Logistics get(@RequestParam(required = false) String id) { Logistics entity = StringUtils.isNotBlank(id) ? getService().find(id) : new Logistics(); return entity; } @RequestMapping(value = "") public String index() { return super.index(); } @RequestMapping(value = "data") public String data(Pagination<Logistics> request, HttpServletResponse response) { return super.data(request, response); } @RequestMapping(value = "form") public String form(HttpServletResponse response, Model model) { return super.form(response, model); } @RequestMapping(value = "save") public String save(Logistics entity, HttpServletResponse response, Model model) { return super.save(entity, response, model); } @RequestMapping(value = "delete") public String delete(Logistics entity, HttpServletResponse response, Model model) { return super.delete(entity, response, model); } }
[ "570440569@qq.com" ]
570440569@qq.com
2f694d9ed8388c35e984d9a669e4884588e38d47
180e78725121de49801e34de358c32cf7148b0a2
/dataset/protocol1/spoon/learning/1054/SourceFragmentContextList.java
98c76ce76e3c66ab680826e2be828020b8f82f82
[]
no_license
ASSERT-KTH/synthetic-checkstyle-error-dataset
40e8d1e0a7ebe7f7711def96a390891a6922f7bd
40c057e1669584bfc6fecf789b5b2854660222f3
refs/heads/master
2023-03-18T12:50:55.410343
2019-01-25T09:54:39
2019-01-25T09:54:39
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,764
java
/** * Copyright (C) 2006-2018 INRIA and contributors * Spoon - http://spoon.gforge.inria.fr/ * * This software is governed by the CeCILL-C License under French law and * abiding by the rules of distribution of free software. You can use, modify * and/or redistribute the software under the terms of the CeCILL-C license as * circulated by CEA, CNRS and INRIA at http://www.cecill.info. * * This program is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or * FITNESS FOR A PARTICULAR PURPOSE. See the CeCILL-C License for more details. * * The fact that you are presently reading this means that you have had * knowledge of the CeCILL-C license and that you accept its terms. */ package spoon.support.sniper.internal; import java.util.List; import spoon.reflect.declaration.CtElement; import static spoon.support.sniper.internal.ElementSourceFragment.isSpaceFragment; /** * Handles printing of changes of the ordered list of elements. * E.g. list of type members of type * Such lists must be printed in same order like they are in defined in Spoon model. */ public class SourceFragmentContextList extends AbstractSourceFragmentContextCollection { /** * @param mutableTokenWriter {@link MutableTokenWriter}, which is used for printing * @param element the {@link CtElement} whose list attribute is handled * @param fragments the List of fragments, which represents whole list of elements. E.g. body of method or all type members of type * @param changeResolver {@link ChangeResolver}, which can be used to detect changes of list items */ public SourceFragmentContextList(MutableTokenWriter mutableTokenWriter, CtElement element, List<SourceFragment> fragments, ChangeResolver changeResolver) { super(mutableTokenWriter, fragments, changeResolver); } @Override protected int findIndexOfNextChildTokenOfEvent(PrinterEvent event) { if (event instanceof ElementPrinterEvent) { // in case of collection search for exact item of the collection ElementPrinterEvent elementEvent = (ElementPrinterEvent)event; return findIndexOfNextChildTokenOfElement(elementEvent.getElement()); } return super.findIndexOfNextChildTokenOfEvent(event); } @Override protected void printOriginSpacesUntilFragmentIndex(int index) { super.printOriginSpacesUntilFragmentIndex(getLastWhiteSpaceBefore(index), index); } /** * @return index of last child fragment which contains space, which is before `index` */ private int getLastWhiteSpaceBefore(int index) { for (int i = index - 1; i >= 0; i--) { SourceFragment fragment = childFragments.get(i); if (isSpaceFragment(fragment)) { continue; } return i + 1; } return 0; } }
[ "bloriot97@gmail.com" ]
bloriot97@gmail.com
76a527625b80eec7723a324401ad09775c25bc6a
6465026c92381b4d4f6961263d308781ec2bb167
/source/workspace/AlternativeOasis/src/dk/aau/cs/giraf/oasis/lib/models/MediaProfileAccess.java
303a8c3023aab345ab2394184cdb0caf3ad012ee
[]
no_license
Tellus/SW6Parrot
23c935abda710bed7375d5a3896e1d564dd1c4d1
858a10b17a7b8f36fa379a8b7385ce7cc47eb73c
refs/heads/master
2021-01-18T12:26:36.837507
2013-05-08T07:53:11
2013-05-08T07:53:11
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,749
java
package dk.aau.cs.giraf.oasis.lib.models; public class MediaProfileAccess { private long idProfile; private long idMedia; private static String _output = "{0}, {1}"; /** * Constructor with arguments * @param idProfile the profile id to set * @param idMedia the media id to set */ public MediaProfileAccess(long idProfile, long idMedia) { this.idProfile = idProfile; this.idMedia = idMedia; } /** * Empty constructor */ public MediaProfileAccess() { } /** * @return the idProfile */ public long getIdProfile() { return idProfile; } /** * @param idProfile the idProfile to set */ public void setIdProfile(long idProfile) { this.idProfile = idProfile; } /** * @return the idMedia */ public long getIdMedia() { return idMedia; } /** * @param idMedia the idMedia to set */ public void setIdMedia(long idMedia) { this.idMedia = idMedia; } /** * @param _output the _output to set */ public static void set_output(String _output) { MediaProfileAccess._output = _output; } @Override public String toString() { String localOutput = _output; localOutput = localOutput.replace("{0}", String.valueOf(getIdProfile())); localOutput = localOutput.replace("{1}", String.valueOf(getIdMedia())); return localOutput; } @Override public boolean equals(Object aMediaProfileAccess) { if ( this == aMediaProfileAccess ) return true; if ( !(aMediaProfileAccess instanceof MediaProfileAccess) ) return false; MediaProfileAccess mediaProfileAccess = (MediaProfileAccess)aMediaProfileAccess; return EqualsUtil.areEqual(this.getIdProfile(), mediaProfileAccess.getIdProfile()) && EqualsUtil.areEqual(this.getIdMedia(), mediaProfileAccess.getIdMedia()); } }
[ "lniel1989@hotmail.com" ]
lniel1989@hotmail.com
2166cca7875bbc6864630c7c9f1a9cb49513c747
85931caf1308a7d7bc6952ccad0c820e48263804
/编写/网页练习/src/LianXi1/DAO.java
27eed645086826d1e19cb43627234d46ca019870
[]
no_license
hao276843248/javaAll
486125eee4551bb40e13b64bb2919daaa30eda98
eb4b69fd0b7a5c2995fee5c33af0b8ae8532644b
refs/heads/master
2021-01-22T22:20:58.485866
2017-03-20T06:46:08
2017-03-20T06:46:08
85,530,985
0
0
null
null
null
null
UTF-8
Java
false
false
40
java
package LianXi1; public class DAO { }
[ "276843248@qq.com" ]
276843248@qq.com
21710e35f91d4c47941322471c996ad8e057fffd
368132fab1482cd30f15837a65fd7ab1aa7ffe0f
/product-center/product-service/src/main/java/org/product/repository/product/PcProductAttributeValueRepository.java
7db7b268e3cfbd3762638c095586f754326e24f9
[]
no_license
zero1814/xk
a906491be43465e1f7c0d1d02a28d7d64d9de43b
e817d9d20502c88099552a1899af7be6de60a213
refs/heads/master
2022-07-05T05:17:10.501183
2019-07-12T00:53:32
2019-07-12T00:53:32
121,183,749
0
0
null
null
null
null
UTF-8
Java
false
false
256
java
package org.product.repository.product; import org.product.entity.product.PcProductAttributeValue; import org.zero.spring.jpa.BaseRepository; public interface PcProductAttributeValueRepository extends BaseRepository<PcProductAttributeValue, String> { }
[ "zhanghaiyu@reignwood.com" ]
zhanghaiyu@reignwood.com
ca550de7b19d32abf013edc73173819465c27b30
0b608191c152a62fcb2ffa696dcb18d0a41e906c
/src/main/java/com/simple/service/IUserService.java
5967f29976cd42f1774e9501f4e624e5f72c9afc
[]
no_license
Simple4H/work
3d6c2c268411ba4cf1d368d30de6d9827f79232c
7995a37662cb6275671831b60ef5bc6b9d44e5ff
refs/heads/master
2022-07-22T12:14:08.472259
2019-01-09T04:32:41
2019-01-09T04:32:41
null
0
0
null
null
null
null
UTF-8
Java
false
false
457
java
package com.simple.service; import com.simple.common.ServerResponse; import com.simple.pojo.User; import javax.servlet.http.HttpServletRequest; /** * Create By S I M P L E On 2018/07/27 15:45:10 */ public interface IUserService { ServerResponse register(User user); ServerResponse<User> login(String email, String password); ServerResponse checkLoginStatus(HttpServletRequest request); ServerResponse checkAdmin(int authority); }
[ "crescentcxm@gmail.com" ]
crescentcxm@gmail.com
2def57804cc5db0e0d6d004a750e533eb2e9ef76
0d7274a4d335e04c002c99e80b3ff0627a3359cf
/DoAnCSNMang/src/operatingsystem/GantDiagram.java
fe645ea67d811864feb261c8a9a519366434461f
[]
no_license
caoquangtrong/DoAnMang
273c34447d6ee2669a909da386e00ac566e17dbc
bbb7b77dc5ddaa917627ba58c45890cc65aa3b96
refs/heads/master
2023-02-06T23:32:01.037902
2020-12-27T06:53:42
2020-12-27T06:53:42
null
0
0
null
null
null
null
UTF-8
Java
false
false
88
java
package operatingsystem; public class GantDiagram { private int[] nameOfProcess; }
[ "levanchien11a1@gmail.com" ]
levanchien11a1@gmail.com
4fb04583b57ffbc8cf7d61a7539ecceef31f2535
64bf664bcd26edde84306825c2e9cabdb4ad8ef6
/src/main/java/me/neznamy/tab/shared/features/scoreboard/lines/NumberedStableDynamicLine.java
e1d4705ee62346344742193d3ec2b920c7ca4a00
[ "Apache-2.0" ]
permissive
Kore-Development/TAB
2283823650214e0529e3313d27b58991cf134fcc
98c3b3da5940e0d90b792974367e2ce2dd68a84c
refs/heads/master
2023-04-09T11:18:52.951925
2020-12-17T22:26:56
2020-12-17T22:26:56
322,449,084
0
0
Apache-2.0
2023-04-04T02:02:48
2020-12-18T00:46:25
null
UTF-8
Java
false
false
642
java
package me.neznamy.tab.shared.features.scoreboard.lines; import me.neznamy.tab.api.TabPlayer; import me.neznamy.tab.shared.features.scoreboard.Scoreboard; /** * A stable (anti-flickering) line with dynamic text (supports placeholders) with numbers 1-15 * Limitations: * 1.5.x - 1.12.x: up to 32 characters (depending on color/magic codes) */ public class NumberedStableDynamicLine extends StableDynamicLine { public NumberedStableDynamicLine(Scoreboard parent, int lineNumber, String text) { super(parent, lineNumber, text); } @Override public int getScoreFor(TabPlayer p) { return parent.lines.size() + 1 - lineNumber; } }
[ "n.e.z.n.a.m.y@azet.sk" ]
n.e.z.n.a.m.y@azet.sk
787836a6c0ed59c15e7d26087e66440bbec899b5
e48c0fb20670f8d0876b92ae43ddb17686052c68
/dac-exemplo-2/src/main/java/br/edu/ifpb/dac/dac/exemplo/UsuarioDao.java
a1a59f8d373764ddd11b0335113950747ab5b0d5
[]
no_license
miolivc/dac-javase-postgres-docker
2686b13a24b1158f5ace64010bcb9741b03612a9
fbd46c888e79fa6c74f99af4d76af598fa9eefb4
refs/heads/master
2021-01-23T10:23:03.524889
2017-06-01T13:24:08
2017-06-01T13:24:08
93,058,488
0
0
null
null
null
null
UTF-8
Java
false
false
345
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package br.edu.ifpb.dac.dac.exemplo; import java.util.List; /** * * @author miolivc */ public interface UsuarioDao { List<Usuario> list(); }
[ "miolivc@outlook.com" ]
miolivc@outlook.com
1e6c7658faf5f07356f55bc66878af1195cebd9f
a273ea1da6c938f4af2005093616c6fdacb8aeb5
/backend/src/main/java/com/ntnu/gidd/security/token/TokenFactory.java
d4d6425cd5111f9e2881a6dc6c2ab23554d918d4
[ "MIT" ]
permissive
treyshotz/GIDD
e678aa1eaeff6016f32aca7142596963b56b99b6
e957b187aa2a5111e1c771039a1b90d95d5c3184
refs/heads/master
2023-04-22T22:43:50.123592
2021-05-13T15:13:44
2021-05-13T15:13:44
363,102,684
0
5
null
null
null
null
UTF-8
Java
false
false
251
java
package com.ntnu.gidd.security.token; import com.ntnu.gidd.security.UserDetailsImpl; public interface TokenFactory { JwtAccessToken createAccessToken(UserDetailsImpl userDetails); JwtToken createRefreshToken(UserDetailsImpl userDetails); }
[ "eirsteir@stud.ntnu.no" ]
eirsteir@stud.ntnu.no
e12e51b3e26d26851a3bd9e863b689cbc472069d
4cb1ad6da9cbaa61904a75711c7c0291722bbd8e
/src/controller/weichatplatform/PlatformBase.java
9b93b93faeeb27edf9256549e5aca8b8f9375bc5
[]
no_license
blockchain1977/nzexpress
ed2fc427f5c00ed53b2e24fca315ca3a9762586f
0dd49e27f5bffa6b20a543049c562ec70627cdc8
refs/heads/master
2020-03-13T18:05:22.484665
2018-04-27T01:32:59
2018-04-27T01:32:59
131,229,313
0
0
null
null
null
null
UTF-8
Java
false
false
303
java
package controller.weichatplatform; /** * Created by kyle.yu on 15/05/2015. */ public class PlatformBase { /** * * @param hexEmoji * @return */ public static String emoji(int hexEmoji) { return String.valueOf(Character.toChars(hexEmoji)); } }
[ "blockchain1977@outlook.com" ]
blockchain1977@outlook.com
ad415279aefef8e824b7a17d59f65c3900d3eac5
6037f90b0e64e8a9a65a55d9cf5f0a0af972910a
/src/main/java/com/xslgy/common/service/PublicResourceService.java
8d042f1beb12cdba1e8b8ad9ece2b0beca3ca218
[]
no_license
newIdeasPublic/newIdeas-backend
ef2f5d35729ef270826ac7cddc2aecba80d91299
04ad6e06835783789b20f0a4a2ff7a2e29a80086
refs/heads/main
2023-03-09T04:55:34.167792
2021-02-26T17:01:58
2021-02-26T17:01:58
318,113,380
0
2
null
2021-02-27T07:04:05
2020-12-03T07:39:34
Java
UTF-8
Java
false
false
472
java
package com.xslgy.common.service; import com.xslgy.common.entity.PublicResource; import com.xslgy.common.utils.PageUtils; import org.springframework.data.domain.Pageable; /** * 公共资源 */ public interface PublicResourceService { PageUtils listPage(String name, String levelOne, String levelTwo, String mobile, Pageable pageable); PublicResource getById(Long id); PublicResource save(PublicResource publicResource); void deleteById(Long id); }
[ "tomcat@hisazo.group" ]
tomcat@hisazo.group
fbce19f78ac5e5473e00f28133a92484a06d893f
f12147a6635f3da9dade458d2422c7aca0b65308
/src/main/java/com/songshu/common/Function.java
ded2e94b5125cde645c8ab3502d6bffa6b2219d3
[]
no_license
pcc000/springboot
9229b7a4c4537fcd68320a84061e4298d4ca3a8a
2ec21be484b565218f9fca6b5df2e5306bb26ba1
refs/heads/master
2023-02-21T01:06:27.885195
2023-02-16T06:09:06
2023-02-16T06:09:06
154,478,487
0
0
null
2022-09-01T23:34:23
2018-10-24T09:58:47
Java
UTF-8
Java
false
false
90
java
package com.songshu.common; public interface Function<A, B> { B invoking(A var1); }
[ "1097322117@qq.com" ]
1097322117@qq.com
d18f9ef1b3094981ae23b5e01e18bff93b200b23
af7bd2aa44a32b75df682e5d95cba62ee446232d
/src/StudentFinal.java
4d5006350f987a085783e0de90dd3bfcb8a6154f
[]
no_license
mcgillosd/exam-service
0a904b790c315df727f7a26c575a52ca399c9b99
a43191768d256889e1f1910c29d97c27947acac7
refs/heads/master
2021-01-16T21:24:10.461868
2015-01-29T02:33:56
2015-01-29T02:33:56
10,199,135
0
0
null
null
null
null
UTF-8
Java
false
false
3,872
java
import java.util.Calendar; import java.util.Comparator; import java.util.Date; import org.apache.poi.xssf.usermodel.XSSFCellStyle; /* * Created on Jul 17, 2013 2:39:08 PM */ /** * Class creates a Student for Finals * * @author Olga Tsibulevskaya */ public class StudentFinal extends Student { private String sidFull; private String nameProfFirst; private String nameProfLast; private boolean timeChanged = false; private boolean conflict = false; private XSSFCellStyle [] cells = new XSSFCellStyle[14]; public StudentFinal() { super(); } public String getSidFull() { return sidFull; } public void setSidFull(String sid) { this.sidFull = sid; } public void setExamDate(Date date) { examDate = date; } public void setCourse(String course) { this.course = course; } public void setExamStartTime(Date examTime) { examStartTime = examTime; } private void setExamStartTime() { //set time to 19:00 Calendar cal = Calendar.getInstance(); cal.setTime(examStartTime); cal.set(Calendar.HOUR_OF_DAY, 19); cal.set(Calendar.MINUTE, 0); Date startLate = cal.getTime(); Calendar calStart = Calendar.getInstance(); calStart.setTime(examStartTime); Calendar calFinish = Calendar.getInstance(); calFinish.setTime(examStartTime); calFinish.add(Calendar.MINUTE, examLength); Date finish = calFinish.getTime(); if (finish.compareTo(startLate) > 0) { int res = (int)((finish.getTime()/60000) - (startLate.getTime()/60000)); calStart.add(Calendar.MINUTE, -res); examStartTime = calStart.getTime(); timeChanged = true; } } public void setExamLength() { int time = 3*60; if (extraTime == null) examLength = time; else if (extraTime.equals("T1/2") || extraTime.equalsIgnoreCase("Time+1/2")) examLength = (int)(time + time/2.0); else if (extraTime.equals("T1/3") || extraTime.equalsIgnoreCase("Time+1/3")) examLength = (int)(time + time/3.0); else if (extraTime.equals("T1/4") || extraTime.equalsIgnoreCase("Time+1/4")) examLength = (int)(time + time/4.0); else if (extraTime.equals("2x")) examLength = time*2; else examLength = time; setExamStartTime(); setExamFinishTime(); } public boolean timeChanged() { return timeChanged; } public boolean hasConflict() { return conflict; } public void setConflict(boolean bool) { conflict = bool; } public String getNameProfFirst() { return nameProfFirst; } public void setNameProfFirst(String nameFirst) { nameProfFirst = nameFirst; } public String getNameProfLast() { return nameProfLast; } public void setNameProfLast(String nameLast) { nameProfLast = nameLast; } public boolean equals(Object obj) { if (this == obj) return true; if (! (obj instanceof StudentFinal)) return false; StudentFinal s = (StudentFinal)obj; int comp = nameLast.compareTo(s.getNameLast()); if (comp != 0) return false; comp = nameFirst.compareTo(s.getNameFirst()); if (comp != 0) return false; return examDate.compareTo(s.getExamDate()) == 0; } public XSSFCellStyle getCell(int index) { return cells[index]; } public void setCell(XSSFCellStyle cs, int index) { cells[index] = cs; } public boolean equalProf(StudentFinal s) { int comp = nameProfLast.compareTo(s.nameProfLast); if (comp != 0) return false; return (nameProfFirst.compareTo(s.nameProfFirst) == 0); } /* sorts by the professor's name, required to create lists of students for professors */ public static class ProfComparator implements Comparator<StudentFinal> { public int compare(StudentFinal s1, StudentFinal s2) { int comp = s1.getNameProfLast().compareTo(s2.getNameProfLast()); if (comp != 0) return comp; comp = s1.getNameProfFirst().compareTo(s2.getNameProfFirst()); if (comp != 0) return comp; return s1.getCourse().compareTo(s2.getCourse()); } } }
[ "olgatsib@gmail.com" ]
olgatsib@gmail.com
4ee7256a9c308c4667a52b1051e54744ad78ed5e
9b77dd522fea12b0e282698e1ffa01377294037e
/src/main/java/com/zd/utils/tools/util/web/ResponseUtil.java
7a053316410e1fe6eca866f1b32c42e20234c4f6
[]
no_license
michensy/utils
fd1f82b8c76782ca8c1b06479f50c040657638dc
123cd18245091d5e61e4fecf5af09e43fffc4c5c
refs/heads/master
2022-07-06T05:39:59.403194
2019-08-20T08:24:31
2019-08-20T08:24:31
181,006,029
0
0
null
2022-02-01T00:58:49
2019-04-12T12:42:22
Java
UTF-8
Java
false
false
2,151
java
package com.zd.utils.tools.util.web; import com.alibaba.fastjson.JSON; import org.apache.commons.lang3.StringUtils; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.Writer; /** * @author Zidong * @date 2019/5/23 4:21 PM */ public class ResponseUtil { private static final Logger LOGGER = LoggerFactory.getLogger(ResponseUtil.class); private ResponseUtil() { } /** * 输出客户端JSON内容 */ public static void responseJSON(HttpServletResponse response, Object object) { writeResponse(JSON.toJSONString(object), "application/json"); } /** * 输出客户端html内容 */ public static void responseHtml(String text) { HttpServletResponse response = WebUtil.getHttpResponse(); if (response != null) { writeResponse(text, "text/html"); } } public static void writeSupportCrossDomain(HttpServletResponse response) { HttpServletRequest request = WebUtil.getHttpRequest(); if (request != null) { String origin = request.getHeader("Origin"); if (StringUtils.isNotBlank(origin) && origin.endsWith("doodl6.com")) { response.setHeader("Access-Control-Allow-Origin", origin); } response.setHeader("Access-Control-Allow-Credentials", "true"); response.setHeader("Access-Control-Allow-Headers", request.getHeader("Access-Control-Request-Headers")); } } private static void writeResponse(String content, String contentType) { HttpServletResponse response = WebUtil.getHttpResponse(); if (response != null) { response.setContentType(contentType); response.setCharacterEncoding("utf-8"); try (Writer writer = response.getWriter()) { writer.write(content); writer.flush(); } catch (IOException e) { LOGGER.error("输出客户端内容出现异常", e); } } } }
[ "zidong.me@gmail.com" ]
zidong.me@gmail.com
22d60b0c0a55856c7af1700b85cc6eb776d12386
798fc5864eff82e8e521ae53d8fadab8faa5ff82
/src/main/java/it/mountaineering/gadria/ring/memory/bean/WebcamProperty.java
654b47028346284f2dd14d79349913f43bbe9c0c
[]
no_license
emmartu/GadriaWebapp
fade1d46200a83d6815503fec1595ecf97fbf02b
bb5b4ed04042ac3f6430aa1156f26d725870b560
refs/heads/master
2022-12-22T12:17:32.537740
2019-06-07T07:13:15
2019-06-07T07:13:15
138,329,302
1
0
null
2022-12-16T01:43:34
2018-06-22T17:18:30
Java
UTF-8
Java
false
false
2,893
java
package it.mountaineering.gadria.ring.memory.bean; import it.mountaineering.gadria.ring.memory.bean.WebcamProperty; public class WebcamProperty { String iD; boolean enabled; String ip; String videoRelativeStorageFolder; String pictureRelativeStorageFolder; public String getiD() { return iD; } public void setiD(String iD) { this.iD = iD; } public boolean isEnabled() { return enabled; } public void setEnabled(boolean enabled) { this.enabled = enabled; } public String getIp() { return ip; } public void setIp(String ip) { this.ip = ip; } public String getVideoRelativeStorageFolder() { return videoRelativeStorageFolder; } public void setVideoRelativeStorageFolder(String videoRelativeStorageFolder) { this.videoRelativeStorageFolder = videoRelativeStorageFolder; } public String getPictureRelativeStorageFolder() { return pictureRelativeStorageFolder; } public void setPictureRelativeStorageFolder(String pictureRelativeStorageFolder) { this.pictureRelativeStorageFolder = pictureRelativeStorageFolder; } @Override public int hashCode() { final int prime = 31; int result = 1; result = prime * result + (enabled ? 1231 : 1237); result = prime * result + ((iD == null) ? 0 : iD.hashCode()); result = prime * result + ((ip == null) ? 0 : ip.hashCode()); result = prime * result + ((pictureRelativeStorageFolder == null) ? 0 : pictureRelativeStorageFolder.hashCode()); result = prime * result + ((videoRelativeStorageFolder == null) ? 0 : videoRelativeStorageFolder.hashCode()); return result; } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; WebcamProperty other = (WebcamProperty) obj; if (enabled != other.enabled) return false; if (iD == null) { if (other.iD != null) return false; } else if (!iD.equals(other.iD)) return false; if (ip == null) { if (other.ip != null) return false; } else if (!ip.equals(other.ip)) return false; if (pictureRelativeStorageFolder == null) { if (other.pictureRelativeStorageFolder != null) return false; } else if (!pictureRelativeStorageFolder.equals(other.pictureRelativeStorageFolder)) return false; if (videoRelativeStorageFolder == null) { if (other.videoRelativeStorageFolder != null) return false; } else if (!videoRelativeStorageFolder.equals(other.videoRelativeStorageFolder)) return false; return true; } @Override public String toString() { return "WebcamProperty [iD=" + iD + ", enabled=" + enabled + ", ip=" + ip + ", videoRelativeStorageFolder=" + videoRelativeStorageFolder + ", pictureRelativeStorageFolder=" + pictureRelativeStorageFolder + "]"; } }
[ "lelemartufi@gmail.com" ]
lelemartufi@gmail.com
1094686b4e08e9f007cf37bc92591710530af9ab
55eb8b3faf7e02ed1c7d86d24703b92eba201920
/logger/src/main/java/com/vamsi/logger/Estimate.java
7921abda44808bb2973b208d652e8302960fb001
[]
no_license
saivamsikayala/saivamsi-kayala-logger
5bc81c9ec8553603b020bfab849827d4d75194f2
0a50de3b265d63ca5779bbc68317f2fb5fb9baea
refs/heads/master
2022-01-01T04:20:29.364278
2020-02-29T09:56:53
2020-02-29T09:56:53
243,943,931
0
0
null
2021-12-14T21:40:50
2020-02-29T09:55:30
Java
UTF-8
Java
false
false
327
java
package com.vamsi.logger; public class Estimate { public double estimateHouse(double area,int stndrd,boolean fullyautomated) { int cost[]= {1200,1500,1800,2500}; int costpersqfeet = 0; if(fullyautomated) costpersqfeet = cost[3]; else costpersqfeet = cost[stndrd-1]; return (double)area*costpersqfeet; } }
[ "ksaivamsi27@gmail.com" ]
ksaivamsi27@gmail.com
e79b52fa2128bcc94465e1a7acc7ab82da092c68
cbcda4a75afe28d4f4aa19c3e9a30c8c23a0cc74
/src/com/nyanyaww/Protocol/Response/ReadDiscreteInputResponse.java
c7d5c8fec77833259055170a7fa5cc7e718d3b9a
[ "MIT" ]
permissive
nyanyaww/modbus
30638b6cca1802070b2de96828c31b7692c7ddd6
cc300a006d309d9f7796ce4555a3143d1c10ca30
refs/heads/master
2020-05-25T21:16:05.765326
2019-06-21T04:55:34
2019-06-21T04:55:34
187,995,852
1
0
null
2019-06-21T04:54:37
2019-05-22T08:27:33
Java
UTF-8
Java
false
false
604
java
package com.nyanyaww.Protocol.Response; /** * @author nyanyaww * @program modbus * @description 读取离散量输入应答 功能码02 * @create 2019-06-02 00:43 **/ public class ReadDiscreteInputResponse extends ReadCoilsResponse { public ReadDiscreteInputResponse(char clientId, char[] data) { super(clientId, data); } public static void main(String[] args) { char[] data = {0xCD, 0x6B, 0x05}; ReadDiscreteInputResponse readCoilsResponse = new ReadDiscreteInputResponse((char) 0x01, data); System.out.println(readCoilsResponse.toString()); } }
[ "515478826@qq.com" ]
515478826@qq.com
3e522ce5c495a16080b7eb77c4740bf1fc49e959
11448973e46f1cf4eaf095cef1030872259e1ab4
/Java Web Developement/PetsAssignment/src/AustralianParrot.java
d101f1f1a1fdac179a5f92e48d1dfae7142fbd8c
[]
no_license
786sag/tutorial
a1917c891e248e4c5f7605d2111ca1e512713740
f12208fce1a7e5d17d5e56b700c5e131b72c8777
refs/heads/master
2021-01-10T21:37:00.976560
2015-03-09T15:41:53
2015-03-09T15:41:53
31,247,739
0
0
null
null
null
null
UTF-8
Java
false
false
300
java
/** *Class AustralianParrot extends Parent class Parrot * @author Shahid * */ public class AustralianParrot extends Parrot{ /** * implementation of abstract method of interface Pets */ @Override public void speak(){ System.out.println("AustralianParrot speaks Chochocho"); } }
[ "shahid.ahmed@zigron.com" ]
shahid.ahmed@zigron.com
58c82fc0812bef7e0e14939a6f06eca108ed71ce
5882bf08511ee567d112047590106614cb90d8d4
/java-features/src/main/java/com/demo/slk/design/objectpool/ObjectPool.java
97689434b0b6a87cc54eecdab505a9f5d04539a8
[]
no_license
sohanKumawat/java-sample-project
c91ca805d9f35f85d2ba7568e79b65e9f75130fc
645e57116710919c25b9592cb53997f6dcc93f8c
refs/heads/master
2021-10-10T22:01:24.271795
2019-01-18T01:50:54
2019-01-18T01:50:54
46,863,763
0
0
null
null
null
null
UTF-8
Java
false
false
1,174
java
package com.demo.slk.design.objectpool; public abstract class ObjectPool { private String driver; private String url; private String userName; private String password; private int maxConnection; private int minConnection; public String getDriver() { return driver; } public void setDriver(String driver) { this.driver = driver; } public String getUrl() { return url; } public void setUrl(String url) { this.url = url; } public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public int getMaxConnection() { return maxConnection; } public void setMaxConnection(int maxConnection) { this.maxConnection = maxConnection; } public int getMinConnection() { return minConnection; } public void setMinConnection(int minConnection) { this.minConnection = minConnection; } abstract public void setup(); abstract public void execute(); abstract public Connection getConnection(); abstract public void releaseConnection(Connection conn); }
[ "sohan@msg.ai" ]
sohan@msg.ai
b26326d4e541d8b0a201beb681db995ecf33e3d6
0c7d67eeddc5b33e8ca0b836f44988520d0ff2e2
/AdvancedAuthorization/src/main/java/com/example/demo/repository/UserDaoImpl.java
c451d209a8a4773433f639cdd8e1e98ed7f4b1c9
[]
no_license
YukiYamagata/SpringSecurity-Qiita
e2dd41274391b77eafbff009b3eb8719deadcd6b
11ae57e34ab0a5c9c3f4a8f5f13f342bdd99fb6e
refs/heads/master
2022-12-20T04:32:43.191631
2020-10-08T06:23:37
2020-10-08T06:23:37
300,176,648
4
0
null
null
null
null
UTF-8
Java
false
false
1,556
java
package com.example.demo.repository; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import com.example.demo.entity.MyUser; @Repository public class UserDaoImpl implements UserDao { private final JdbcTemplate jdbcTemplate; @Autowired public UserDaoImpl(JdbcTemplate jdbcTemplate) { this.jdbcTemplate = jdbcTemplate; } /** * userNameを検索条件にSELECT文を実行して、DBに登録されているユーザを検索する * @param userName * @return User */ @Override public MyUser findUserByUserName(String userName) { String sql = "SELECT username, password, name, rolename FROM users WHERE username = ?"; //ユーザを一件取得 Map<String, Object> result = jdbcTemplate.queryForMap(sql, userName); // Entityクラス(User型)に変換 MyUser user = convMapToUser(result); return user; } /** * SQL SELECT文を実行した結果(Map<String, Object>)をUser型に変換する * @param Map<String, Object> * @return User */ private MyUser convMapToUser(Map<String, Object> map) { MyUser user = new MyUser(); user.setUserName((String) map.get("username")); user.setPassword((String) map.get("password")); user.setName((String) map.get("name")); user.setRoleName((String) map.get("rolename")); return user; } }
[ "y-yamagata@nri.co.jp" ]
y-yamagata@nri.co.jp
b0f4a348706ba915dbfe28aa67cf80f4a9450ecc
83fe1599e0e2881f873ddc8128ef47a2a3f4b3f5
/src/main/java/net/thekingofduck/loki/controller/NotFoundController.java
5d7c1a6b27ca4fc8df4e04162179b7bce85cd8a5
[ "Apache-2.0" ]
permissive
ActorExpose/Loki-2
8b34a0d39ca063faf5cf235b5dfee15e23420709
a0f0cb18097643d9eab6bca11614767bb89656b7
refs/heads/main
2023-06-16T21:45:29.946440
2021-07-02T13:27:59
2021-07-02T13:27:59
388,589,082
0
1
Apache-2.0
2021-07-22T20:28:56
2021-07-22T20:28:55
null
UTF-8
Java
false
false
3,051
java
package net.thekingofduck.loki.controller; import cn.hutool.core.codec.Base64; import cn.hutool.log.Log; import cn.hutool.log.LogFactory; import net.thekingofduck.loki.common.Utils; import net.thekingofduck.loki.entity.TemplateEntity; import net.thekingofduck.loki.mapper.HttpLogMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.web.servlet.error.ErrorController; import org.springframework.http.HttpHeaders; import org.springframework.stereotype.Controller; import org.springframework.util.StreamUtils; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework.web.context.request.RequestContextHolder; import org.springframework.web.context.request.ServletRequestAttributes; import org.springframework.web.servlet.NoHandlerFoundException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.BufferedReader; import java.io.IOException; import java.nio.charset.StandardCharsets; import java.util.Enumeration; import java.util.HashMap; import java.util.Map; import static net.thekingofduck.loki.common.Utils.httpServletToBase64; @Controller public class NotFoundController implements ErrorController { static Log log = LogFactory.get(Thread.currentThread().getStackTrace()[1].getClassName()); @Autowired private TemplateEntity templates; @Autowired HttpLogMapper httpLogMapper; @RequestMapping(value = {"/error"}) public Object error(HttpServletRequest request, HttpServletResponse response) throws IOException { //获取当前模板名称 String[] templateNames = templates.getList().keySet().toArray(new String[0]); String currentTemplateName = "default"; for (String templateName:templateNames) { Map template = (Map) templates.getList().get(templateName).get(0).get("maps"); int templatePort = Integer.parseInt((String) template.get("port")); if (templatePort == request.getServerPort()){ currentTemplateName = templateName; } } log.info(currentTemplateName); //获取当前模板路径 Map template = (Map) templates.getList().get(currentTemplateName).get(0).get("maps"); String currentTemplate = String.format("%s",template.get("path")).replaceAll(".html",""); //设置响应头信息 int code = Integer.parseInt((String) template.get("code")); response.setStatus(code); Map headers = (Map)template.get("header"); for (Object key:headers.keySet()) { String headerKey = (String) key; String headerValue = (String)headers.get(headerKey); response.addHeader(headerKey,headerValue); } return currentTemplate; } @Override public String getErrorPath() { return null; } }
[ "27958875@qq.com" ]
27958875@qq.com
793928d5c5878c5bdea44e3094b8470872dfb25e
0c05ca6f3ef867fd2374b6fa9be6b558d2b5239b
/src/main/java/com/automata/cloudcore/xmlbindings/DeleteLaunchConfigurationType.java
e8b279beda2450262f94728afcdbf587fc623433
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
remotesyssupport/AWSAutomata
f398b2470af58a199d8468e3a318320c0bcf142d
c159b9f6158d03c42bfac3cfb7b49cf5b5a92ff3
refs/heads/master
2021-01-17T07:08:05.303223
2011-08-20T05:16:51
2011-08-20T05:16:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
2,620
java
// // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10 in JDK 6 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2011.07.13 at 03:54:52 PM IST // package com.automata.cloudcore.xmlbindings; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlType; /** * <p>Java class for DeleteLaunchConfigurationType complex type. * * <p>The following schema fragment specifies the expected content contained within this class. * * <pre> * &lt;complexType name="DeleteLaunchConfigurationType"> * &lt;complexContent> * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> * &lt;sequence> * &lt;element name="LaunchConfigurationName" type="{}ResourceName"/> * &lt;element name="Region" type="{http://www.w3.org/2001/XMLSchema}string"/> * &lt;/sequence> * &lt;/restriction> * &lt;/complexContent> * &lt;/complexType> * </pre> * * */ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "DeleteLaunchConfigurationType", propOrder = { "launchConfigurationName", "region" }) public class DeleteLaunchConfigurationType { @XmlElement(name = "LaunchConfigurationName", required = true) protected String launchConfigurationName; @XmlElement(name = "Region", required = true) protected String region; /** * Gets the value of the launchConfigurationName property. * * @return * possible object is * {@link String } * */ public String getLaunchConfigurationName() { return launchConfigurationName; } /** * Sets the value of the launchConfigurationName property. * * @param value * allowed object is * {@link String } * */ public void setLaunchConfigurationName(String value) { this.launchConfigurationName = value; } /** * Gets the value of the region property. * * @return * possible object is * {@link String } * */ public String getRegion() { return region; } /** * Sets the value of the region property. * * @param value * allowed object is * {@link String } * */ public void setRegion(String value) { this.region = value; } }
[ "santoshdaivajna@gmail.com" ]
santoshdaivajna@gmail.com
56386bbee5c1d767f0a1aa85a25ecdb7b0cc346e
4fbc0e2fafb6c59e9041c9650271ef6ffbdceea4
/Paradigmas_Programacao_16_17/Ficha5_PP/src/pp_fp05/cd/Track.java
2b5a3cda7e95dd9480169132d387421dddfd7178
[]
no_license
Carlos8150075/Engenharia_informatica
9eabf91ae6e92d9fca10bf30e8bfd076743bbb8b
5d7e6ef03bc66bef740d3c03ec964717c90197e7
refs/heads/master
2020-04-02T13:26:19.543816
2018-05-22T10:33:21
2018-05-22T10:33:21
null
0
0
null
null
null
null
UTF-8
Java
false
false
552
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package pp_fp05.cd; /** * * @author Bernardo */ public class Track { protected int n_faixa; protected String nome; protected int duracao; Author[] autores = new Author[5]; public Track(int n_faixa, String nome, int duracao, String autor) { this.n_faixa = n_faixa; this.nome = nome; this.duracao = duracao; } }
[ "8150060@estg.ipp.pt" ]
8150060@estg.ipp.pt
412c4fb0afae276a411efb340204136324c8a221
8426f76258fa0d4aee25a90436d2426ca499185f
/src/main/java/com/hazquesuceda/model/Emprendedor.java
14484dc57c8738af71111b306c9fcec2ffc66a1f
[]
no_license
F-Fischer/Haz-Que-Suceda
42438513030229e1ed4e458cc82d4875b693ebe2
59e97b9521d8f08472cf7cb93129144da4a8449a
refs/heads/master
2018-12-31T13:33:16.882963
2015-08-31T22:34:42
2015-08-31T22:34:42
40,211,127
0
0
null
null
null
null
UTF-8
Java
false
false
344
java
package com.hazquesuceda.model; public class Emprendedor extends Usuario { public void listarProyectos() { } public void renovarProyecto() { } public void crearProyecto() { } public void clausurarProyecto() { } public void modificarProyecto() { } public void finalizarProyecto() { } public void registrarse() { } }
[ "carobottino888@gmail.com" ]
carobottino888@gmail.com
b685f9c04203ca7e8c8fb9febd67da6f0a23ff4c
7b638451a187d869f5417e3e99ce176e5ffdb12b
/src/main/java/com/example/demo/service/CategoriaService.java
5b26901e65aac8f3aeedcc0647042aded49f1da2
[]
no_license
rodrigoencine/backend-boot
2d2985be45f10046c513f07a2703b174cfe0f044
7fc1ac59537be90633db1fd9ff17f88872bab426
refs/heads/master
2022-07-26T07:21:36.860638
2020-05-24T04:24:55
2020-05-24T04:24:55
264,537,398
0
0
null
null
null
null
UTF-8
Java
false
false
2,119
java
package com.example.demo.service; import java.util.List; import java.util.Optional; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.dao.DataIntegrityViolationException; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort.Direction; import org.springframework.stereotype.Service; import com.example.demo.DTO.CategoriaDTO; import com.example.demo.Repositories.CategoriaRepository; import com.example.demo.domain.Categoria; import com.example.demo.service.exceptions.DataIntegrityException; import com.example.demo.service.exceptions.ObjectNotFoundException; @Service public class CategoriaService { @Autowired private CategoriaRepository repo; public Categoria buscar(Integer id) { Optional<Categoria> obj = repo.findById(id); return obj.orElseThrow(() -> new ObjectNotFoundException( "Objeto não encontrado! Id:" + id + ", Tipo:" + Categoria.class)); } public Categoria insert(Categoria categoria) { categoria.setId(null); return repo.save(categoria); } public Categoria update(Categoria categoria) { Categoria newCategoria = buscar(categoria.getId()); this.updateData(newCategoria, categoria); return repo.save(newCategoria); } public void delete(Integer id) { this.buscar(id); try { repo.deleteById(id); } catch (DataIntegrityViolationException e) { throw new DataIntegrityException("Não é possível excluir uma categoria que possui produtos"); } } public List<Categoria> findAll(){ return repo.findAll(); } public Page<Categoria> findPage(Integer page, Integer linesPerPage, String orderBy, String direction){ PageRequest pageRequest = PageRequest.of(page, linesPerPage, Direction.valueOf(direction), orderBy); return repo.findAll(pageRequest); } public Categoria fromDTO(CategoriaDTO categoriaDTO) { return new Categoria(categoriaDTO.getId(), categoriaDTO.getNome()); } private void updateData(Categoria newCategoria, Categoria categoria) { newCategoria.setNome(categoria.getNome()); } }
[ "rodrigoencine@hotmail.com" ]
rodrigoencine@hotmail.com
53521825738804d273fd89a6ad62846f6774e86f
4be8ab5551376f22c777cf10659e591afaf2c698
/app/src/main/java/com/nearnia/encouragement/VolleySingleton.java
98dbfc190b82f859307fa18614494b9a31ce0e5f
[]
no_license
surindersinghbindra/Encourage
b88d64e170b0f84b466887de9b52ce4f3dd77c7d
7cf12dca9e4c23ab38dd6427065dd6508cbe24b7
refs/heads/master
2021-01-18T16:23:19.796045
2017-03-30T19:40:34
2017-03-30T19:40:34
86,741,630
0
0
null
null
null
null
UTF-8
Java
false
false
4,896
java
package com.nearnia.encouragement; import android.app.Application; import android.content.SharedPreferences; import android.graphics.Typeface; import android.text.TextUtils; import com.android.volley.Request; import com.android.volley.RequestQueue; import com.android.volley.toolbox.Volley; import java.util.TimeZone; public class VolleySingleton extends Application { public static int TABHOST = 0; public static SharedPreferences userLogin; public static SharedPreferences screen1, screen2, screen3,screen4; public static Typeface face; static String notificationMessage = ""; static String profileIdRecieved = ""; static String fullname = ""; static String company_name = ""; static public String COVER_IMAGE_URL = "COVER_IMAGE_URL"; static public String PROFILE_IMAGE_URL = "PROFILE_IMAGE_URL"; static public String PROFILE_TAGLINE = "PROFILE_TAGLINE"; static public String COMPANY_NAME = "COMPANY_NAME"; static public String USERNAME = "USERNAME"; static public String PASSWORD = "PASSWORD"; static public String PHONENUMBER = "PHONENUMBER"; static public String DATEOFBIRTH = "DATEOFBIRTH"; static public String NOTIFICATION_TIME = "NOTIFICATION_TIME"; static public String LOGIN_ID = "LOGIN_ID"; static public String GENDER = "GENDER"; static public String EMAIL_ID = "EMAIL_ID"; static public String LOGIN_STATUS = "LOGIN_STATUS"; static public String COVER_IMAGE_BYTE_DATA = "COVERIMAGE_BYTE_DATA"; static public String PROFILE_IMAGE_BYTE_DATA = "PROFILE_IMAGE_BYTE_DATA"; /*<----------ALL URl's------------>*/ static public String SERVER_URL_WITH_SLASH = "http://techwinlabs.com/inspiration/"; public static String IMAGEUPLOAD_URL = SERVER_URL_WITH_SLASH + "uploadPic.php"; public static String EDITPROFILE_URL = SERVER_URL_WITH_SLASH + "index.php?method=editProfile"; public static String SERVER_URL = SERVER_URL_WITH_SLASH + "index.php?"; public static String FORGETPASSOWRD_URL = SERVER_URL_WITH_SLASH + "index.php?method=forgetpwd&email="; public static String SIGNUP = SERVER_URL + "method=signup"; public static String SUB_CATEGORIES = SERVER_URL_WITH_SLASH + "index.php?method=getsubCategory"; public static String SIGNIN_URL = SERVER_URL_WITH_SLASH + "index.php?method=login"; public static String CHANNELS_URL = SERVER_URL_WITH_SLASH + "index.php?method=getCategory"; public static String COVER_IMAGE_UPLOAD_URL = SERVER_URL_WITH_SLASH + "coverPic.php"; public static String DELETE_CATEGORIES_URL = SERVER_URL_WITH_SLASH + "index.php?method=deleteCategory"; public static String HIDECATEGORY_URL = SERVER_URL_WITH_SLASH + "index.php?method=hideCategory"; public static String ADD_QUOTE = SERVER_URL_WITH_SLASH + "index.php?method=requestQuote"; public static String SAVED_CATEGORIES_USER = SERVER_URL_WITH_SLASH + "index.php?method=getsavedcat"; public static String ANALYTIC_APP_OPEN_COUNT_URL = SERVER_URL_WITH_SLASH + "index.php?method=openapp&userid="; public static String ANALYTIC_NOTIFICATION_OPEN_COUNT_URL = SERVER_URL_WITH_SLASH + "index.php?method=opennotifications&userid="; public static String LIKE_QOUTE_URL = SERVER_URL_WITH_SLASH + "index.php?method=likedQuotes&userid="; public static String QUOTES_YOU_WRITTEN_URL = SERVER_URL_WITH_SLASH + "index.php?method=getWrittenQuotes&userid="; public static String PASSWORD_CHANGE_URL = SERVER_URL_WITH_SLASH + "index.php?method=changepassword&userid="; public static String LIKE_A_QOUTE_URL = SERVER_URL_WITH_SLASH + "index.php?method=likeQuote&userid="; public static final String TAG = VolleySingleton.class.getSimpleName(); private RequestQueue mRequestQueue; private static VolleySingleton mInstance; @Override public void onCreate() { super.onCreate(); userLogin = this.getSharedPreferences("USERDETAILS", MODE_PRIVATE); screen1 = this.getSharedPreferences("screenHome", MODE_PRIVATE); screen2 = this.getSharedPreferences("screenHome", MODE_PRIVATE); screen3 = this.getSharedPreferences("screenHome", MODE_PRIVATE); screen4 = this.getSharedPreferences("screenHome", MODE_PRIVATE); mInstance = this; face = Typeface.createFromAsset(getAssets(), "majalla.ttf"); VolleySingleton.userLogin.edit().putString("TIME_ZONE", TimeZone.getDefault().getID()).commit(); } public static synchronized VolleySingleton getInstance() { return mInstance; } public RequestQueue getRequestQueue() { if (mRequestQueue == null) { mRequestQueue = Volley.newRequestQueue(getApplicationContext()); } return mRequestQueue; } public <T> void addToRequestQueue(Request<T> req, String tag) { req.setTag(TextUtils.isEmpty(tag) ? TAG : tag); getRequestQueue().add(req); } public <T> void addToRequestQueue(Request<T> req) { req.setTag(TAG); getRequestQueue().add(req); } public void cancelPendingRequests(Object tag) { if (mRequestQueue != null) { mRequestQueue.cancelAll(tag); } } }
[ "er.surindersinghbindra@gmail.com" ]
er.surindersinghbindra@gmail.com
ac81477daa217472157e86b5efc454964da86573
aaf137571a6b4f53360ee526ec396f221d45c75d
/src/main/java/org/ruqu/ras/service/PersonalService.java
209a73478d338ed303f2dc4c489b60f6cc976d29
[]
no_license
Prisoner19/RAS
d06acf1223fadc37a9ea594e9bde4f9b27e86e9b
1426c3695eab55fd182b338a58f6f427583ec56b
refs/heads/master
2020-12-25T20:30:32.927999
2014-10-27T07:30:52
2014-10-27T07:30:52
14,515,751
0
1
null
null
null
null
UTF-8
Java
false
false
1,213
java
package org.ruqu.ras.service; import java.util.List; import org.ruqu.ras.dao.IPersonalDao; import org.ruqu.ras.domain.Personal; import org.springframework.transaction.annotation.Transactional; @Transactional(readOnly = true) public class PersonalService implements IPersonalService{ IPersonalDao PersonalDAO; @Transactional(readOnly = false) public void addPersonal(Personal Personal) { getPersonalDAO().addPersonal(Personal); } @Transactional(readOnly = false) public void deletePersonal(Personal Personal) { getPersonalDAO().deletePersonal(Personal); } @Transactional(readOnly = false) public void deletePersonalLogico(Personal Personal){ Personal.setVigencia(false); getPersonalDAO().updatePersonal(Personal); } @Transactional(readOnly = false) public void updatePersonal(Personal Personal) { getPersonalDAO().updatePersonal(Personal); } public Personal getPersonalById(int id) { return getPersonalDAO().getPersonalById(id); } public List<Personal> getPersonals() { return getPersonalDAO().getPersonals(); } public IPersonalDao getPersonalDAO() { return PersonalDAO; } public void setPersonalDAO(IPersonalDao PersonalDAO) { this.PersonalDAO = PersonalDAO; } }
[ "dtowong@gmail.com" ]
dtowong@gmail.com
43a89f4eb0825794eb966c8e265c20a4e7668d51
63e2ca4f438bc64d2462746bc27584d6df2656da
/webapp/src/aides/nc/ccas/gasel/jwcs/budget/annuel/HATableau.java
7cdabe7e60aae6609b19489c7f21a1abf8920c12
[]
no_license
DSI-Ville-Noumea/gasel
f091cf64d7a4726f4a7121ab8dbdcb680242b168
b330e88acfeff167c3978ef43c1aafa92101f500
refs/heads/master
2020-04-17T00:15:26.231907
2016-07-06T22:32:43
2016-07-06T22:32:43
44,145,158
0
1
null
2016-01-21T03:12:59
2015-10-13T01:51:15
Java
UTF-8
Java
false
false
3,932
java
package nc.ccas.gasel.jwcs.budget.annuel; import static java.lang.String.valueOf; import static nc.ccas.gasel.model.budget.Imputation.ALIMENTATION; import static nc.ccas.gasel.modelUtils.CommonQueries.findById; import static nc.ccas.gasel.modelUtils.CommonQueries.getAll; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import nc.ccas.gasel.BaseComponent; import nc.ccas.gasel.model.budget.NatureAide; import nc.ccas.gasel.model.budget.SecteurAide; import nc.ccas.gasel.pages.budget.annuel.HAPage; import nc.ccas.gasel.utils.QuickHashMap; import org.apache.cayenne.DataRow; import org.apache.cayenne.ObjectContext; import org.apache.tapestry.IRequestCycle; public abstract class HATableau extends BaseComponent { private List<HALigne> _tableau; public abstract Integer getAnnee(); public List<HALigne> getTableau() { if (_tableau == null) { ObjectContext dc = getObjectContext(); // Récupération des secteurs et natures List<SecteurAide> secteurs = getPage().sort( getAll(dc, SecteurAide.class)).by("libelle").results(); List<NatureAide> natures = getPage().sort( getAll(dc, NatureAide.class)).by("libelle").results(); // Requète int annee = getAnnee(); String agregation = ((HAPage) getPage()).agregation(); String query = "SELECT sa.id AS sa_id, na.id AS na_id, mois, " + agregation + "::integer AS valeur\n" + " FROM aide a\n" + " JOIN aide_montants am ON (a.id = am.id)\n" + " JOIN nature_aide na ON (a.nature_id = na.id)\n" + " JOIN secteur_aide sa ON (na.parent_id = sa.id)\n" + " WHERE am.annee = $annee\n" + " AND na.imputation_id <> " + ALIMENTATION + "\n" + " AND (montant_bons_annule IS NULL OR a.montant > montant_bons_annule)\n" + " GROUP BY sa.id, na.id, mois"; List<DataRow> results = getPage().sql.query().rows( query, new QuickHashMap<String, String>().put("annee", valueOf(annee)).map()); // Analyse HALigne total = new HALigne("Total", true); Map<SecteurAide, HALigne> parSecteur = new HashMap<SecteurAide, HALigne>(); Map<NatureAide, HALigne> parNature = new HashMap<NatureAide, HALigne>(); for (DataRow row : results) { SecteurAide secteur = findById(SecteurAide.class, (Integer) row .get("sa_id"), dc); NatureAide nature = findById(NatureAide.class, (Integer) row .get("na_id"), dc); HALigne ligneSecteur = parSecteur.get(secteur); HALigne ligneNature = parNature.get(nature); if (ligneSecteur == null) { ligneSecteur = new HALigne(secteur.getLibelle(), true); ligneSecteur.setParent(total); parSecteur.put(secteur, ligneSecteur); } if (ligneNature == null) { ligneNature = new HALigne(nature.getLibelle()); ligneNature.setParent(ligneSecteur); parNature.put(nature, ligneNature); } Integer mois = numAsInt(row.get("mois")); Integer valeur = numAsInt(row.get("valeur")); if (valeur == null) valeur = 0; ligneNature.add(mois, valeur); ligneSecteur.add(mois, valeur); total.add(mois, valeur); } _tableau = new ArrayList<HALigne>(parSecteur.size() + parNature.size()); for (SecteurAide secteur : secteurs) { HALigne ligneSecteur = parSecteur.get(secteur); if (ligneSecteur == null) continue; for (NatureAide nature : natures) { if (!nature.getParent().equals(secteur)) continue; HALigne ligneNature = parNature.get(nature); if (ligneNature == null) continue; _tableau.add(ligneNature); } _tableau.add(ligneSecteur); } _tableau.add(total); } return _tableau; } private Integer numAsInt(Object object) { if (object == null) { return null; } return ((Number) object).intValue(); } @Override protected void cleanupAfterRender(IRequestCycle cycle) { super.cleanupAfterRender(cycle); _tableau = null; } }
[ "mcluseau@isi.nc" ]
mcluseau@isi.nc
564f9d4984fd64f2bf0ad0c686225dae2afbe5cd
cab3d8939f972cf6b10b3d7f9ef287d552476121
/Principal/Principal.java
9212e26be09b01ad5d3e6935eb1c9073c4a86713
[]
no_license
diego-hernadez-27/3iv8-HernandezReyesDiegoAlberto
2b2fa5d1086536d34c741699f0ba177df90514a8
8f8c3968aaf487fcc23cc2bfaa2e421208aefed6
refs/heads/master
2023-02-09T22:20:12.070666
2021-01-08T05:46:26
2021-01-08T05:46:26
303,888,240
0
0
null
null
null
null
UTF-8
Java
false
false
142
java
public class Principal{ public static void main(String[] args){ Operaciones obj = new Operaciones(); obj.menu(); } }
[ "dhernandezr1906@alumno.ipn.mx" ]
dhernandezr1906@alumno.ipn.mx
93c8e6d9c90a3f33ddcf873773f9d7eb7d1cd61b
18b88ab07d74f79605d785c71e5b63ddca8dfbca
/src/dados/RepVector.java
139ba944869b4e93a04e994073d76a85635be387
[]
no_license
ofmoura/AplicacaoEntregas
f8df2cd04900b65aa613d5b5f5af1b900f380d56
21b0c920d7f4d2926c1d8eb54e13c3691cff6bf4
refs/heads/master
2020-12-24T13:29:13.062320
2012-06-21T18:04:53
2012-06-21T18:04:53
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,110
java
package dados; import objetos.*; import java.util.Vector; public class RepVector<Gen> implements RepInterface<Gen> { private Vector<Gen> repositorio; public RepVector() { this.repositorio = new Vector<Gen>(); } public void inserir(Gen objeto) { this.repositorio.add(objeto); } public void remover(String atributo) { this.repositorio.remove(procurar(atributo)); } private Cadastrado procurar(String atributo){ Cadastrado cadastrado = null; boolean achou = false; for (int i = 0; i < repositorio.size() && !achou; i++){ if (((Cadastrado)this.repositorio.elementAt(i)).getCodigo() == atributo){ cadastrado = (Cadastrado)this.repositorio.elementAt(i); achou = true; } } return cadastrado; } public Iterator<Gen> iteracao(){ return new Iterator<Gen>(this.repositorio); } public boolean checaExiste(String atributo) { boolean existe = false; for(int i = 0; i < this.repositorio.size() && !existe; i++) { if((((Cadastrado) this.repositorio.elementAt(i)).getIdentificador()).equalsIgnoreCase(atributo)){ existe = true; } } return existe; } }
[ "fmha@G5C26.windows.cin.ufpe.br" ]
fmha@G5C26.windows.cin.ufpe.br
1ed59ac72c9caec41ec8974e2fbc0963f3a736e4
59c213cb32f9cb5afd4eac0d19427a69fa940860
/src/ru/alexander/mp3player/entity/MP3.java
3c898fa7fd00186d14215705a7de57b3720c3696
[]
no_license
ansurakin/Mp3-Player
94a0b9baf0b4404508d5e78fa7751d0d9000a125
f3bc7fe9b65f79042abfe23ac320f5a3d5bec066
refs/heads/master
2021-05-10T11:58:15.432084
2018-01-22T17:19:51
2018-01-22T17:19:51
118,428,064
0
0
null
null
null
null
UTF-8
Java
false
false
842
java
package ru.alexander.mp3player.entity; import java.io.Serializable; import ru.alexander.mp3player.utils.FileUtils; public class MP3 implements Serializable{ private String name; private String path; public MP3(String name, String path) { this.name = name; this.path = path; } @Override // для корректного отображения объекта MP3 при добавлении в плейлист public String toString() { return FileUtils.getFileNameWithoutExtension(name); } public String getName() { return name; } public void setName(String name) { this.name = name; } public String getPath() { return path; } public void setPath(String path) { this.path = path; } }
[ "Alex@Alex-PC" ]
Alex@Alex-PC
9afbe617973176314b637216cd2ad275638d6353
61033e8dd269d6004e640e0e8747f44e9a298989
/classiga-web/src/main/java/ga/classi/web/controller/CommonController.java
f6595595d354159c8d552564c0d499383b144c2c
[ "MIT" ]
permissive
muhammadkholidb/classiga
0be13d5800767c9d51938ff2215868f3cc7a27b0
7c3632ec6aff3c19923fa29c2d8997abbe833e9d
refs/heads/master
2021-06-08T02:46:57.419423
2019-02-14T11:53:53
2019-02-14T11:53:53
362,451,509
0
0
null
null
null
null
UTF-8
Java
false
false
1,117
java
/* * * Licensed under the MIT License. See LICENSE file in the project root for full license information. * */ package ga.classi.web.controller; import ga.classi.commons.web.utility.JSON; import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.util.Map; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestParam; /** * * @author muhammad */ @Controller public class CommonController { @PostMapping("/generate-html") public String generateHtml( @RequestParam(name = "template") String encodedTemplate, @RequestParam(name = "data") String encodedData, ModelMap model) throws UnsupportedEncodingException { String decodedTemplate = URLDecoder.decode(encodedTemplate, "UTF-8"); String decodedData = URLDecoder.decode(encodedData, "UTF-8"); model.addAllAttributes(JSON.parse(decodedData, Map.class)); return decodedTemplate; } }
[ "muhammadkholidb@gmail.com" ]
muhammadkholidb@gmail.com
95afbb50d95152780cf99ea6807b0cfc2d9cb384
71ae84dab29d410a7a9e425a8ef4aa53ce2b250e
/DAO1/src/edu/tudai/db/Select.java
1b4abc1957f4fec1d99b082be5f90fc7abc536fe
[]
no_license
matiasgandara/ArquiWeb
31eb7ff1b59801e98ecbdec17655341ee24853b5
483b887413296caca89eb552cc8e368f0d53f81c
refs/heads/master
2022-12-16T11:19:31.965918
2020-09-16T14:45:20
2020-09-16T14:45:20
296,062,654
0
0
null
null
null
null
UTF-8
Java
false
false
1,144
java
package edu.tudai.db; import java.lang.reflect.InvocationTargetException; import java.sql.Connection; import java.sql.DriverManager; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; public class Select { public static void main(String[] args) { String driver = "com.mysql.cj.jdbc.Driver"; try { Class.forName(driver).getDeclaredConstructor().newInstance(); } catch (InstantiationException | IllegalAccessException | IllegalArgumentException | InvocationTargetException | NoSuchMethodException | SecurityException | ClassNotFoundException e) { e.printStackTrace(); System.exit(1); } String uri = "jdbc:mysql://localhost:3306/exampleDB"; try { Connection conn = DriverManager.getConnection(uri,"root","password"); conn.setAutoCommit(false); String select = "SELECT * FROM persona"; PreparedStatement ps = conn.prepareStatement(select); ResultSet rs= ps.executeQuery(); while (rs.next()) { System.out.println(rs.getInt(1)+","+rs.getString(2)+","+rs.getInt(3)); } conn.close(); } catch (SQLException e) { e.printStackTrace(); } } }
[ "gandaramatias@gmail.com" ]
gandaramatias@gmail.com
51c0b7b89d5e84d099a9d6ad7147a03996081bfe
c004811ea03b315c73a7177d8764086e67e1e018
/src/main/java/br/projecao/fabricadesoftware/disponibilidadeprofessoresapi/resources/DisciplinaResource.java
f400c5e7b4e724c965aa4ebdad3818c18212b3bb
[]
no_license
jpapim/fabrica-disponibilidade-professor-api
cb97f36aad844d9932db431abc6da55453f3863f
f5731e7cddf60feb4cd2797a4770e91243826c60
refs/heads/master
2020-04-11T03:37:29.858414
2018-11-12T02:55:47
2018-11-12T02:55:47
161,483,504
1
0
null
2018-12-12T12:14:22
2018-12-12T12:14:22
null
UTF-8
Java
false
false
1,866
java
package br.projecao.fabricadesoftware.disponibilidadeprofessoresapi.resources; import java.time.LocalDateTime; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import br.projecao.fabricadesoftware.disponibilidadeprofessoresapi.model.Disciplina; import br.projecao.fabricadesoftware.disponibilidadeprofessoresapi.repository.DisciplinaRepository; import br.projecao.fabricadesoftware.disponibilidadeprofessoresapi.resources.interfaces.Resource; @RestController @RequestMapping(value = "/disciplina", produces = MediaType.APPLICATION_JSON_VALUE) public class DisciplinaResource implements Resource<Disciplina> { @Autowired private DisciplinaRepository repository; @Override public void fillInBlankFields(Disciplina entity) { } @Override public void merge(Disciplina newEntity, Disciplina oldEntity) { } @Override public JpaRepository<Disciplina, Long> getRepository() { return this.repository; } @Override public void executaAntesDeCadastrar(Disciplina entity) { entity.setDataHoraCadastro(LocalDateTime.now()); } @Override public void executaAntesDeAtualizarParcialMente(Long id, Disciplina entity) { entity.setId(id); entity.setDataHoraAlteracao(LocalDateTime.now()); fillInBlankFields(entity); } @Override public void executaAntesDeAtualizarTotalmente(Long id, Disciplina entity) { entity.setId(id); entity.setDataHoraAlteracao(LocalDateTime.now()); } @Override public void executaAntesDeDeletar(Long id) { } @Override public boolean isInvalidoParaAtualizacao(Long id, Disciplina entity) { return entity.getId() == null || entity.getId().longValue() <= 0; } }
[ "marcosantonio3232@hotmail.com" ]
marcosantonio3232@hotmail.com
0fd4876e09ffb6cdfb9a93a8f564c8a002dca327
6f52d70d2fd70d8d0e7bcb217bbc0921dfdf5aeb
/ProjetoColecionador/ProjetoColecionador-ejb/src/java/com/br/lp3/model/entities/Obra.java
cccd45fc795dd2afefcc035d0e475b5713b2e1e2
[]
no_license
eversonsilva/LP3
9d0d02bb55325c9b54d2197ff8e77dc519af936e
538124073cd179045db2f068dc6e694489bc515d
refs/heads/master
2021-01-20T20:52:59.311834
2016-07-04T16:06:08
2016-07-04T16:06:08
62,573,716
0
0
null
null
null
null
UTF-8
Java
false
false
3,645
java
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package com.br.lp3.model.entities; import java.io.Serializable; import java.util.List; import javax.persistence.Basic; import javax.persistence.CascadeType; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import javax.persistence.JoinColumn; import javax.persistence.ManyToOne; import javax.persistence.NamedQueries; import javax.persistence.NamedQuery; import javax.persistence.OneToMany; import javax.persistence.Table; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlTransient; /** * * @author Everson */ @Entity @Table(name = "OBRA") @XmlRootElement @NamedQueries({ @NamedQuery(name = "Obra.findAll", query = "SELECT o FROM Obra o"), @NamedQuery(name = "Obra.findByIdObra", query = "SELECT o FROM Obra o WHERE o.idObra = :idObra"), @NamedQuery(name = "Obra.findByNomeobra", query = "SELECT o FROM Obra o WHERE o.nomeobra = :nomeobra")}) public class Obra implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Basic(optional = false) @Column(name = "ID_OBRA") private Long idObra; @Basic(optional = false) @NotNull @Size(min = 1, max = 35) @Column(name = "NOMEOBRA") private String nomeobra; @JoinColumn(name = "ID_AUTOR", referencedColumnName = "ID_AUTOR") @ManyToOne(optional = false) private Autor idAutor; @OneToMany(cascade = CascadeType.ALL, mappedBy = "idObra") private List<Emprestimo> emprestimoList; public Obra() { } public Obra(Long idObra) { this.idObra = idObra; } public Obra(Long idObra, String nomeobra) { this.idObra = idObra; this.nomeobra = nomeobra; } public Long getIdObra() { return idObra; } public void setIdObra(Long idObra) { this.idObra = idObra; } public String getNomeobra() { return nomeobra; } public void setNomeobra(String nomeobra) { this.nomeobra = nomeobra; } public Autor getIdAutor() { return idAutor; } public void setIdAutor(Autor idAutor) { this.idAutor = idAutor; } @XmlTransient public List<Emprestimo> getEmprestimoList() { return emprestimoList; } public void setEmprestimoList(List<Emprestimo> emprestimoList) { this.emprestimoList = emprestimoList; } @Override public int hashCode() { int hash = 0; hash += (idObra != null ? idObra.hashCode() : 0); return hash; } @Override public boolean equals(Object object) { // TODO: Warning - this method won't work in the case the id fields are not set if (!(object instanceof Obra)) { return false; } Obra other = (Obra) object; if ((this.idObra == null && other.idObra != null) || (this.idObra != null && !this.idObra.equals(other.idObra))) { return false; } return true; } @Override public String toString() { return "com.br.lp3.model.entities.Obra[ idObra=" + idObra + " ]"; } }
[ "Everson@192.168.0.12" ]
Everson@192.168.0.12
8c6ce5056f1f86ce8b8cfd349aaa9336c177e442
2bd37df6b1c3de94d3accf8ddbf28c95706bb1d8
/src/main/java/org/zollty/dbk/datasource/AbstractDriverBasedDataSource.java
5dc7d7d9186c87dd545997ba8c51299158e831ff
[ "Apache-2.0" ]
permissive
zollty-org/zollty-dbk
6cc6a6a0eaabf57e07c64f791a0c8351d3778353
0d73486db4d55e1975ae9436982aa4c49af310e0
refs/heads/master
2020-12-02T10:08:23.621882
2019-02-13T02:21:57
2019-02-13T02:21:57
96,693,013
0
0
null
null
null
null
UTF-8
Java
false
false
4,907
java
/* * Copyright 2002-2013 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.zollty.dbk.datasource; import java.sql.Connection; import java.sql.SQLException; import java.util.Properties; /** * Abstract base class for JDBC {@link javax.sql.DataSource} implementations * that operate on a JDBC {@link java.sql.Driver}. * * @author Juergen Hoeller * @since 2.5.5 * @see SimpleDriverDataSource * @see DriverManagerDataSource */ public abstract class AbstractDriverBasedDataSource extends AbstractDataSource { private String url; private String username; private String password; private Properties connectionProperties; /** * Set the JDBC URL to use for connecting through the Driver. * @see java.sql.Driver#connect(String, java.util.Properties) */ public void setUrl(String url) { if(url==null || url.length()==0){ throw new IllegalArgumentException("Property 'url' must not be empty"); } this.url = url.trim(); } /** * Return the JDBC URL to use for connecting through the Driver. */ public String getUrl() { return this.url; } /** * Set the JDBC username to use for connecting through the Driver. * @see java.sql.Driver#connect(String, java.util.Properties) */ public void setUsername(String username) { this.username = username; } /** * Return the JDBC username to use for connecting through the Driver. */ public String getUsername() { return this.username; } /** * Set the JDBC password to use for connecting through the Driver. * @see java.sql.Driver#connect(String, java.util.Properties) */ public void setPassword(String password) { this.password = password; } /** * Return the JDBC password to use for connecting through the Driver. */ public String getPassword() { return this.password; } /** * Specify arbitrary connection properties as key/value pairs, * to be passed to the Driver. * <p>Can also contain "user" and "password" properties. However, * any "username" and "password" bean properties specified on this * DataSource will override the corresponding connection properties. * @see java.sql.Driver#connect(String, java.util.Properties) */ public void setConnectionProperties(Properties connectionProperties) { this.connectionProperties = connectionProperties; } /** * Return the connection properties to be passed to the Driver, if any. */ public Properties getConnectionProperties() { return this.connectionProperties; } /** * This implementation delegates to {@code getConnectionFromDriver}, * using the default username and password of this DataSource. * @see #getConnectionFromDriver(String, String) * @see #setUsername * @see #setPassword */ @Override public Connection getConnection() throws SQLException { return getConnectionFromDriver(getUsername(), getPassword()); } /** * This implementation delegates to {@code getConnectionFromDriver}, * using the given username and password. * @see #getConnectionFromDriver(String, String) */ @Override public Connection getConnection(String username, String password) throws SQLException { return getConnectionFromDriver(username, password); } /** * Build properties for the Driver, including the given username and password (if any), * and obtain a corresponding Connection. * @param username the name of the user * @param password the password to use * @return the obtained Connection * @throws SQLException in case of failure * @see java.sql.Driver#connect(String, java.util.Properties) */ protected Connection getConnectionFromDriver(String username, String password) throws SQLException { Properties mergedProps = new Properties(); Properties connProps = getConnectionProperties(); if (connProps != null) { mergedProps.putAll(connProps); } if (username != null) { mergedProps.setProperty("user", username); } if (password != null) { mergedProps.setProperty("password", password); } return getConnectionFromDriver(mergedProps); } /** * Obtain a Connection using the given properties. * <p>Template method to be implemented by subclasses. * @param props the merged connection properties * @return the obtained Connection * @throws SQLException in case of failure */ protected abstract Connection getConnectionFromDriver(Properties props) throws SQLException; }
[ "zollty@163.com" ]
zollty@163.com
2bb1aac70de4d0feef2d4d0f8893ec1851bc78a0
e06988ec6c1bad9c165b6c9920c1ce93a56ad6c5
/src/main/java/com/self/covaxinavailibilityselfalert/enumerations/VaccineTrackingType.java
73c04303da9a8c4267bda91a38a9d4de7c6b1582
[ "MIT" ]
permissive
pks9862728888/covaxin-availibility-self-alert
60f08020347971ebe289ed63161d0d609b9dd1af
ff75babc3c217a7d19381a6f632d91d7e72d149e
refs/heads/main
2023-04-30T17:44:38.290972
2021-05-18T15:22:28
2021-05-18T15:22:28
368,117,049
0
0
MIT
2021-05-18T15:07:32
2021-05-17T08:48:51
Java
UTF-8
Java
false
false
330
java
package com.self.covaxinavailibilityselfalert.enumerations; public enum VaccineTrackingType { COVAXIN("COVAXIN"), COVISHIELD("COVISHIELD"), BOTH("BOTH"); private String name; VaccineTrackingType(String name) { this.name = name; } public String getName() { return this.name; } }
[ "pks9862728888@gmail.com" ]
pks9862728888@gmail.com
9572e94817484c243e834e02b68a6ca45600fc0f
732b4c455a52dacf043abaaa33395285bc17d49c
/src/main/java/com/artland/controller/admin/AdminController.java
ade6fd55d60ab08d36eade339b7da42555121f6f
[ "Apache-2.0" ]
permissive
WaylanPunch/ArtLand
1aa10868ecd6ba1d47465210940d3121eef651ac
ec3fc1e8e035ab4b321afd4d095aa7c23213f985
refs/heads/main
2023-02-06T15:47:33.696959
2020-12-30T17:25:14
2020-12-30T17:25:14
325,594,170
0
0
null
null
null
null
UTF-8
Java
false
false
4,790
java
package com.artland.controller.admin; import com.artland.entity.AdminUser; import com.artland.service.*; import org.springframework.stereotype.Controller; import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpSession; /** * @author WaylanPunch * @email waylanpunch@gmail.com * @link https://github.com/WaylanPunch * @date 2017-10-31 */ @Controller @RequestMapping("/admin") public class AdminController { @Resource private AdminUserService adminUserService; @Resource private BlogService blogService; @Resource private CategoryService categoryService; @Resource private LinkService linkService; @Resource private TagService tagService; @Resource private CommentService commentService; @GetMapping({"/login"}) public String login() { return "admin/login"; } @GetMapping({"", "/", "/index", "/index.html"}) public String index(HttpServletRequest request) { request.setAttribute("path", "index"); request.setAttribute("categoryCount", categoryService.getTotalCategories()); request.setAttribute("blogCount", blogService.getTotalBlogs()); request.setAttribute("linkCount", linkService.getTotalLinks()); request.setAttribute("tagCount", tagService.getTotalTags()); request.setAttribute("commentCount", commentService.getTotalComments()); return "admin/index"; } @PostMapping(value = "/login") public String login(@RequestParam("userName") String userName, @RequestParam("password") String password, @RequestParam("verifyCode") String verifyCode, HttpSession session) { if (StringUtils.isEmpty(verifyCode)) { session.setAttribute("errorMsg", "验证码不能为空"); return "admin/login"; } if (StringUtils.isEmpty(userName) || StringUtils.isEmpty(password)) { session.setAttribute("errorMsg", "用户名或密码不能为空"); return "admin/login"; } String kaptchaCode = session.getAttribute("verifyCode") + ""; if (StringUtils.isEmpty(kaptchaCode) || !verifyCode.equals(kaptchaCode)) { session.setAttribute("errorMsg", "验证码错误"); return "admin/login"; } AdminUser adminUser = adminUserService.login(userName, password); if (adminUser != null) { session.setAttribute("loginUser", adminUser.getNickName()); session.setAttribute("loginUserId", adminUser.getAdminUserId()); //session过期时间设置为7200秒 即两小时 //session.setMaxInactiveInterval(60 * 60 * 2); return "redirect:/admin/index"; } else { session.setAttribute("errorMsg", "登陆失败"); return "admin/login"; } } @GetMapping("/profile") public String profile(HttpServletRequest request) { Integer loginUserId = (int) request.getSession().getAttribute("loginUserId"); AdminUser adminUser = adminUserService.getUserDetailById(loginUserId); if (adminUser == null) { return "admin/login"; } request.setAttribute("path", "profile"); request.setAttribute("loginUserName", adminUser.getLoginUserName()); request.setAttribute("nickName", adminUser.getNickName()); return "admin/profile"; } @PostMapping("/profile/password") @ResponseBody public String passwordUpdate(HttpServletRequest request, @RequestParam("originalPassword") String originalPassword, @RequestParam("newPassword") String newPassword) { if (StringUtils.isEmpty(originalPassword) || StringUtils.isEmpty(newPassword)) { return "参数不能为空"; } Integer loginUserId = (int) request.getSession().getAttribute("loginUserId"); if (adminUserService.updatePassword(loginUserId, originalPassword, newPassword)) { //修改成功后清空session中的数据,前端控制跳转至登录页 request.getSession().removeAttribute("loginUserId"); request.getSession().removeAttribute("loginUser"); request.getSession().removeAttribute("errorMsg"); return "success"; } else { return "修改失败"; } } @PostMapping("/profile/name") @ResponseBody public String nameUpdate(HttpServletRequest request, @RequestParam("loginUserName") String loginUserName, @RequestParam("nickName") String nickName) { if (StringUtils.isEmpty(loginUserName) || StringUtils.isEmpty(nickName)) { return "参数不能为空"; } Integer loginUserId = (int) request.getSession().getAttribute("loginUserId"); if (adminUserService.updateName(loginUserId, loginUserName, nickName)) { return "success"; } else { return "修改失败"; } } @GetMapping("/logout") public String logout(HttpServletRequest request) { request.getSession().removeAttribute("loginUserId"); request.getSession().removeAttribute("loginUser"); request.getSession().removeAttribute("errorMsg"); return "admin/login"; } }
[ "waylanpunch@gmail.com" ]
waylanpunch@gmail.com
049ea7a2487f01f5ff4a1e1bb3aa6ad1441340ae
bb48454f8485910ee7b296da612b8f8ed8c77bb2
/app/src/main/java/com/rpl9/bcare/MapFragment.java
aa3bb4841fffec6f0fc046ecf6673c6f635ff057
[]
no_license
zainnardo/Bcare
0cd22fced703fe6a8ef83252c5dea96d58edf1ec
ff4074a35c196868318b7c90083fe26cdd8ffc3d
refs/heads/master
2020-04-20T09:53:44.724669
2019-02-02T00:24:38
2019-02-02T00:24:38
168,776,558
0
0
null
null
null
null
UTF-8
Java
false
false
567
java
package com.rpl9.bcare; import android.os.Bundle; import android.support.annotation.NonNull; import android.support.annotation.Nullable; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class MapFragment extends Fragment { @Nullable @Override public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) { return inflater.inflate(R.layout.activity_maps, container, false); } }
[ "zainnardo123@gmail.com" ]
zainnardo123@gmail.com
b1c881d43260f68c84ef7c5ed58e89c60b482422
e175eb50cc5b29a766344ecc1fb5a3e1c32e16f2
/Android_Dev/Hackaton_Project/platform/media/src/com/telenav/media/ITnMediaListener.java
bd9393547d8fb7d3e49614c21bf5f9ca2eaf8320
[]
no_license
rajpalparyani/RajRepo
28fddd8eef7cc83b2194ba25105628ee7fd887ca
5f3e215bcf39f0a7542b3bb8dfc458854ae25cde
refs/heads/master
2020-04-12T18:25:07.276246
2013-12-09T22:41:51
2013-12-09T22:41:51
null
0
0
null
null
null
null
UTF-8
Java
false
false
1,580
java
/** * * Copyright 2010 TeleNav, Inc. All rights reserved. * ITnMediaListener.java * */ package com.telenav.media; /** * ITnMediaListener is the interface for receiving asynchronous events generated by players or recorders. Applications * may implement this interface and register their implementations with the setListener method in {@link TnMediaPlayer} * or {@link TnMediaRecorder}. * * @author fqming (fqming@telenav.cn) *@date Jul 26, 2010 */ public interface ITnMediaListener { /** * Called when the media is ready for playback. */ public final static String ON_PREPARE = "on_prepare"; /** * Called to indicate an error. */ public final static String ON_ERROR = "on_error"; /** * Called to indicate an info or a warning. */ public final static String ON_INFO = "on_info"; /** * Called when the end of a media source is reached during playback. */ public final static String ON_COMPLETION = "on_completion"; /** * Called when the player or recorder is closed. */ public final static String ON_CLOSE = "on_close"; /** * This method is called to deliver an event to a registered listener when a Player event is observed. * * @param player The player which generated the event. * @param event The event generated as defined by the enumerated types. * @param eventData The associated event data. */ public void mediaUpdate(TnMediaPlayer player, String event, Object eventData); }
[ "x" ]
x
2f4bf82e7bb2634d6ee881e4f75ba570969b734f
ade01d02024831f30c3fd98ef4bb1f30bd6847ce
/challenges/hunt_red/Challenge.java
c22fb17ef887c707381f7166aa84830f082514f5
[ "MIT" ]
permissive
codio-content/Coding_with_Java-Functions
b2eda0bbfbe37a3ea1025c3f1492116edb6bd84f
1b765d3ef5f6580f4f165757779d37e3384fafdf
refs/heads/master
2021-01-18T18:05:41.713982
2019-07-29T09:30:02
2019-07-29T09:30:02
61,888,061
0
0
null
2016-07-04T09:55:19
2016-06-24T13:57:32
JavaScript
UTF-8
Java
false
false
244
java
public class Challenge { // Your code goes here public static void main(String[] args) { // Input variables String str = args[0]; System.out.println( // Function call ); } }
[ "spackham@codio.com" ]
spackham@codio.com
f78863eb1e4d086bf183129efdcbf3e0ac633600
6b56f80cc2fbb688c132220169def90ab595fabb
/src/main/java/cn/itdivine/pattern/create/factory/func/TelunsuFactory.java
0c6b6a7146467fdf6c814b8059305cd6a94e14ad
[]
no_license
itdivine/pattern
5273c421b8f37210de3a600808b8731455fb2acf
ce2578a49be50480d1716c1580399c7189143683
refs/heads/master
2021-06-04T11:29:35.070542
2019-08-11T15:28:32
2019-08-11T15:28:32
146,192,057
0
0
null
2020-10-13T07:16:02
2018-08-26T15:21:17
Java
UTF-8
Java
false
false
351
java
package cn.itdivine.pattern.create.factory.func; import cn.itdivine.pattern.create.factory.Milk; import cn.itdivine.pattern.create.factory.Telunsu; /** * 事情变得越来越专业 * Created by Tom on 2018/3/4. */ public class TelunsuFactory implements Factory { @Override public Milk getMilk() { return new Telunsu(); } }
[ "123530015@qq.com" ]
123530015@qq.com
cd3c8b3548f3a3801bc6aafdee16e6ae7c0c4b1c
e897ab66bb353c73a4a80143c842ed7ba6f2fc2e
/src/net/main/action/AppliancesAciton.java
9f571724835c0bd29e3e5e94f9ec8d78fde27156
[]
no_license
Chatti8114/Project1
5d9af36ddbfb03627ff3dcb1842c6a2329618fd6
f32952da22aa8e02b41eb65fa84d8ffafbb1606d
refs/heads/master
2022-11-19T03:17:01.397556
2020-07-16T13:18:07
2020-07-16T13:18:07
264,880,806
0
0
null
null
null
null
UHC
Java
false
false
1,101
java
package net.main.action; import net.board.action.ActionForward; import net.board.db.BoardDAO; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; import java.io.PrintWriter; public class AppliancesAciton implements net.board.action.Action { @Override public ActionForward execute(HttpServletRequest request, HttpServletResponse response) throws Exception { response.setContentType("text/html;charset=UTF-8"); BoardDAO boarddao = new BoardDAO(); String result = ""; System.out.println("포스트 성공"); result = boarddao.getAppliances(); if(result!=null){ System.out.println("내용전달 성공!"); PrintWriter out; try { out = response.getWriter(); out.print(result); out.flush(); } catch (IOException e) { e.printStackTrace(); } } else { System.out.println("실패하였습니다"); } return null; } }
[ "remeon8114@gmail.com" ]
remeon8114@gmail.com
a22beef33c0227a0b5fc38cdf5fb340d87b7918c
74b47b895b2f739612371f871c7f940502e7165b
/aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ContextSummary.java
5bf6e0e382d2ab9b5e5aace86076214724c717cb
[ "Apache-2.0" ]
permissive
baganda07/aws-sdk-java
fe1958ed679cd95b4c48f971393bf03eb5512799
f19bdb30177106b5d6394223a40a382b87adf742
refs/heads/master
2022-11-09T21:55:43.857201
2022-10-24T21:08:19
2022-10-24T21:08:19
221,028,223
0
0
Apache-2.0
2019-11-11T16:57:12
2019-11-11T16:57:11
null
UTF-8
Java
false
false
11,293
java
/* * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.sagemaker.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** * <p> * Lists a summary of the properties of a context. A context provides a logical grouping of other entities. * </p> * * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/sagemaker-2017-07-24/ContextSummary" target="_top">AWS API * Documentation</a> */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ContextSummary implements Serializable, Cloneable, StructuredPojo { /** * <p> * The Amazon Resource Name (ARN) of the context. * </p> */ private String contextArn; /** * <p> * The name of the context. * </p> */ private String contextName; /** * <p> * The source of the context. * </p> */ private ContextSource source; /** * <p> * The type of the context. * </p> */ private String contextType; /** * <p> * When the context was created. * </p> */ private java.util.Date creationTime; /** * <p> * When the context was last modified. * </p> */ private java.util.Date lastModifiedTime; /** * <p> * The Amazon Resource Name (ARN) of the context. * </p> * * @param contextArn * The Amazon Resource Name (ARN) of the context. */ public void setContextArn(String contextArn) { this.contextArn = contextArn; } /** * <p> * The Amazon Resource Name (ARN) of the context. * </p> * * @return The Amazon Resource Name (ARN) of the context. */ public String getContextArn() { return this.contextArn; } /** * <p> * The Amazon Resource Name (ARN) of the context. * </p> * * @param contextArn * The Amazon Resource Name (ARN) of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public ContextSummary withContextArn(String contextArn) { setContextArn(contextArn); return this; } /** * <p> * The name of the context. * </p> * * @param contextName * The name of the context. */ public void setContextName(String contextName) { this.contextName = contextName; } /** * <p> * The name of the context. * </p> * * @return The name of the context. */ public String getContextName() { return this.contextName; } /** * <p> * The name of the context. * </p> * * @param contextName * The name of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public ContextSummary withContextName(String contextName) { setContextName(contextName); return this; } /** * <p> * The source of the context. * </p> * * @param source * The source of the context. */ public void setSource(ContextSource source) { this.source = source; } /** * <p> * The source of the context. * </p> * * @return The source of the context. */ public ContextSource getSource() { return this.source; } /** * <p> * The source of the context. * </p> * * @param source * The source of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public ContextSummary withSource(ContextSource source) { setSource(source); return this; } /** * <p> * The type of the context. * </p> * * @param contextType * The type of the context. */ public void setContextType(String contextType) { this.contextType = contextType; } /** * <p> * The type of the context. * </p> * * @return The type of the context. */ public String getContextType() { return this.contextType; } /** * <p> * The type of the context. * </p> * * @param contextType * The type of the context. * @return Returns a reference to this object so that method calls can be chained together. */ public ContextSummary withContextType(String contextType) { setContextType(contextType); return this; } /** * <p> * When the context was created. * </p> * * @param creationTime * When the context was created. */ public void setCreationTime(java.util.Date creationTime) { this.creationTime = creationTime; } /** * <p> * When the context was created. * </p> * * @return When the context was created. */ public java.util.Date getCreationTime() { return this.creationTime; } /** * <p> * When the context was created. * </p> * * @param creationTime * When the context was created. * @return Returns a reference to this object so that method calls can be chained together. */ public ContextSummary withCreationTime(java.util.Date creationTime) { setCreationTime(creationTime); return this; } /** * <p> * When the context was last modified. * </p> * * @param lastModifiedTime * When the context was last modified. */ public void setLastModifiedTime(java.util.Date lastModifiedTime) { this.lastModifiedTime = lastModifiedTime; } /** * <p> * When the context was last modified. * </p> * * @return When the context was last modified. */ public java.util.Date getLastModifiedTime() { return this.lastModifiedTime; } /** * <p> * When the context was last modified. * </p> * * @param lastModifiedTime * When the context was last modified. * @return Returns a reference to this object so that method calls can be chained together. */ public ContextSummary withLastModifiedTime(java.util.Date lastModifiedTime) { setLastModifiedTime(lastModifiedTime); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getContextArn() != null) sb.append("ContextArn: ").append(getContextArn()).append(","); if (getContextName() != null) sb.append("ContextName: ").append(getContextName()).append(","); if (getSource() != null) sb.append("Source: ").append(getSource()).append(","); if (getContextType() != null) sb.append("ContextType: ").append(getContextType()).append(","); if (getCreationTime() != null) sb.append("CreationTime: ").append(getCreationTime()).append(","); if (getLastModifiedTime() != null) sb.append("LastModifiedTime: ").append(getLastModifiedTime()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ContextSummary == false) return false; ContextSummary other = (ContextSummary) obj; if (other.getContextArn() == null ^ this.getContextArn() == null) return false; if (other.getContextArn() != null && other.getContextArn().equals(this.getContextArn()) == false) return false; if (other.getContextName() == null ^ this.getContextName() == null) return false; if (other.getContextName() != null && other.getContextName().equals(this.getContextName()) == false) return false; if (other.getSource() == null ^ this.getSource() == null) return false; if (other.getSource() != null && other.getSource().equals(this.getSource()) == false) return false; if (other.getContextType() == null ^ this.getContextType() == null) return false; if (other.getContextType() != null && other.getContextType().equals(this.getContextType()) == false) return false; if (other.getCreationTime() == null ^ this.getCreationTime() == null) return false; if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false) return false; if (other.getLastModifiedTime() == null ^ this.getLastModifiedTime() == null) return false; if (other.getLastModifiedTime() != null && other.getLastModifiedTime().equals(this.getLastModifiedTime()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContextArn() == null) ? 0 : getContextArn().hashCode()); hashCode = prime * hashCode + ((getContextName() == null) ? 0 : getContextName().hashCode()); hashCode = prime * hashCode + ((getSource() == null) ? 0 : getSource().hashCode()); hashCode = prime * hashCode + ((getContextType() == null) ? 0 : getContextType().hashCode()); hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode()); hashCode = prime * hashCode + ((getLastModifiedTime() == null) ? 0 : getLastModifiedTime().hashCode()); return hashCode; } @Override public ContextSummary clone() { try { return (ContextSummary) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.sagemaker.model.transform.ContextSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }
[ "" ]
a3c736eccb2eff3d4340568e6703b5af8bb6836b
68d12c475b11edc3582f4d958862b847cacdf833
/pgpainless-core/src/test/java/org/pgpainless/signature/builder/UniversalSignatureBuilderTest.java
37bc6fd3174e083e4d1fe2fabcd9c6c28484cbb9
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "EPL-1.0", "EPL-2.0", "MIT", "LGPL-2.1-only" ]
permissive
pgpainless/pgpainless
496331e6f8b1b3c03c4cc81eaaa1c077800dbd8d
9ac681d88cd63e016bb0069ecc96ac0d648c210a
refs/heads/main
2023-08-31T04:47:26.079558
2023-08-30T11:18:39
2023-08-30T11:18:39
135,846,104
117
29
Apache-2.0
2023-08-28T16:27:59
2018-06-02T19:24:33
Java
UTF-8
Java
false
false
4,516
java
// SPDX-FileCopyrightText: 2022 Paul Schaub <vanitasvitae@fsfe.org> // // SPDX-License-Identifier: Apache-2.0 package org.pgpainless.signature.builder; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import java.io.IOException; import org.bouncycastle.bcpg.sig.PrimaryUserID; import org.bouncycastle.openpgp.PGPException; import org.bouncycastle.openpgp.PGPSecretKey; import org.bouncycastle.openpgp.PGPSecretKeyRing; import org.bouncycastle.openpgp.PGPSignature; import org.bouncycastle.openpgp.PGPSignatureGenerator; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.pgpainless.PGPainless; import org.pgpainless.algorithm.HashAlgorithm; import org.pgpainless.algorithm.KeyFlag; import org.pgpainless.algorithm.SignatureType; import org.pgpainless.key.protection.SecretKeyRingProtector; import org.pgpainless.signature.subpackets.SignatureSubpackets; public class UniversalSignatureBuilderTest { private static final String KEY = "-----BEGIN PGP PRIVATE KEY BLOCK-----\n" + "Version: PGPainless\n" + "Comment: 9611 510F 313E DBC2 BBBC DC24 3BAD F1F8 3E70 DC34\n" + "Comment: Signora Universa <signora@pgpainless.org>\n" + "\n" + "lFgEY4DKKRYJKwYBBAHaRw8BAQdA65vJxvvLASI/gczDP8ZKH4C+16MLU7F5iP91\n" + "8WWUqM0AAQCRSTHLLQWT9tuNRgkG3xaIiBGkEGD7Ou/R3oga6tc1MA8UtClTaWdu\n" + "b3JhIFVuaXZlcnNhIDxzaWdub3JhQHBncGFpbmxlc3Mub3JnPoiPBBMWCgBBBQJj\n" + "gMopCRA7rfH4PnDcNBYhBJYRUQ8xPtvCu7zcJDut8fg+cNw0Ap4BApsBBRYCAwEA\n" + "BAsJCAcFFQoJCAsCmQEAAOgMAPwIOXWt3EBBusK5Ps3m7p/5HsecZv3IXtscEQBx\n" + "vKlULwD/YuLP1XJSqcE2cQJRNt6OLi9Nt02MKBYkhWrRCYZAcQicXQRjgMopEgor\n" + "BgEEAZdVAQUBAQdAWTstuhvHwmSXaQ4Vh8yxl0DZcvjrWkZI+n9/uFBxEmoDAQgH\n" + "AAD/eRt6kgOMzWsTuM00am4UhSygxmDt7h6JkBTnpyyhK0gPiYh1BBgWCgAdBQJj\n" + "gMopAp4BApsMBRYCAwEABAsJCAcFFQoJCAsACgkQO63x+D5w3DRnZAEA6GlS9Tw8\n" + "9SJlUvh5aciYSlQUplnEdng+Pvzbj74zcXIA/2OkyMN428ddNhkHWWkZCMOxApum\n" + "/zNDSYMwvByQ2KcFnFgEY4DKKRYJKwYBBAHaRw8BAQdAfhPrtVuG3g/zXF51VrPv\n" + "kpQQk9aqjrkBMI0qlztBpu0AAP9Mw7NCsAVwg9CgmSzG2ATIDp3yf/4BGVYDs7qu\n" + "+sbn7xKIiNUEGBYKAH0FAmOAyikCngECmwIFFgIDAQAECwkIBwUVCgkIC18gBBkW\n" + "CgAGBQJjgMopAAoJENmzwZA/hq5ZCqIBAMYeOnASBd+WWta7Teh3g7Bl7sFY42Qy\n" + "0OnaSGk/pLm9AP4yC62Xpb9DhWeiQIOY7k5n4lhNn173IfzDK6KXzBKkBgAKCRA7\n" + "rfH4PnDcNMInAP4oanG9tbuczBNLN3JY4Hg4AaB+w5kfdOJxKwnAw7U0cgEAtasg\n" + "67qSjHvsEvjNKeXzUm+db7NWP3fpIHxAmjWVjwM=\n" + "=Dqbd\n" + "-----END PGP PRIVATE KEY BLOCK-----"; private PGPSecretKeyRing secretKeys; private final SecretKeyRingProtector protector = SecretKeyRingProtector.unprotectedKeys(); @BeforeEach public void parseKey() throws IOException { secretKeys = PGPainless.readKeyRing().secretKeyRing(KEY); } @Test public void createPetNameSignature() throws PGPException { PGPSecretKey signingKey = secretKeys.getSecretKey(); PGPSignature archetype = signingKey.getPublicKey().getSignatures().next(); UniversalSignatureBuilder builder = new UniversalSignatureBuilder( signingKey, protector, archetype); builder.applyCallback(new SignatureSubpackets.Callback() { @Override public void modifyHashedSubpackets(SignatureSubpackets hashedSubpackets) { hashedSubpackets.setExportable(true, false); hashedSubpackets.setPrimaryUserId(new PrimaryUserID(false, false)); } }); PGPSignatureGenerator generator = builder.getSignatureGenerator(); String petName = "mykey"; PGPSignature petNameSig = generator.generateCertification(petName, secretKeys.getPublicKey()); assertEquals(SignatureType.POSITIVE_CERTIFICATION.getCode(), petNameSig.getSignatureType()); assertEquals(4, petNameSig.getVersion()); assertEquals(signingKey.getKeyID(), petNameSig.getKeyID()); assertEquals(HashAlgorithm.SHA512.getAlgorithmId(), petNameSig.getHashAlgorithm()); assertEquals(KeyFlag.toBitmask(KeyFlag.CERTIFY_OTHER), petNameSig.getHashedSubPackets().getKeyFlags()); assertFalse(petNameSig.getHashedSubPackets().isExportable()); assertFalse(petNameSig.getHashedSubPackets().isPrimaryUserID()); } }
[ "vanitasvitae@fsfe.org" ]
vanitasvitae@fsfe.org
07e62126c53a1ea28c8643d3eab489baf2d87eeb
81459479bbdce9494b78f1df611151e493658a4d
/src/qp/operators/Orderby.java
26ca428ba6b5a6652a6149ff1ad558aebc795bad
[ "MIT" ]
permissive
CoderStellaJ/CS3223-Database-Systems
6cba37fd0312cd3445f0d1f54fe8eee5d71f234f
ed92aaeb1776a918f37d93b924aea5e6e69504cb
refs/heads/master
2022-04-12T16:18:27.964838
2020-04-09T15:40:24
2020-04-09T15:40:24
238,462,976
0
0
null
null
null
null
UTF-8
Java
false
false
2,019
java
package qp.operators; import qp.utils.*; import java.util.ArrayList; import java.util.Comparator; public class Orderby extends Operator { Operator base; // Base table to sort ArrayList<Attribute> attrset; // Set of attributes to sort int numBuff; ArrayList<Integer> attrIndex; public Orderby(Operator base, ArrayList<Attribute> as, int numBuff) { super(OpType.ORDERBY); this.base = base; this.attrset = as; this.numBuff = numBuff; } public Operator getBase() { return base; } public void setBase(Operator base) { this.base = base; } public boolean open() { setSize(); Schema baseSchema = base.getSchema(); attrIndex = new ArrayList<>(); for (int i = 0; i < attrset.size(); ++i) { Attribute attr = attrset.get(i); if (attr.getAggType() != Attribute.NONE) { System.err.println("Aggragation is not implemented."); System.exit(1); } int index = baseSchema.indexOf(attr.getBaseAttribute()); attrIndex.add(index); } this.base = new SortedRun(this.base, numBuff); ((SortedRun) this.base).setComparator(new TupleComparator(attrIndex, attrIndex)); this.base.setSchema(schema); if (!base.open()) return false; return true; } public Batch next() { return base.next(); } public boolean close() { base.close(); return true; } public Object clone() { Operator newbase = (Operator) base.clone(); ArrayList<Attribute> newattr = new ArrayList<>(); for (int i = 0; i < attrset.size(); ++i) newattr.add((Attribute) attrset.get(i).clone()); Orderby newob = new Orderby(newbase, newattr, numBuff); Schema newSchema = (Schema) newbase.getSchema().subSchema(newattr).clone(); newob.setSchema(newSchema); return newob; } }
[ "836932889@qq.com" ]
836932889@qq.com
b2556aca3c63a4889a6ff6f266357d114156b41c
cf4b0851d6e3ba16f3ada1b7b9c7831aa7c9f4bb
/src/java_20190725/step3/StopWatchDemo.java
2750a47b64cbebed210ea7b0075ee8d35aa98f2b
[]
no_license
sch930214/Java_Fundamental
37565251063749fa69068dd6a18143be79cec8f7
0569d3479e6a3efe8239af4082655122dc399e23
refs/heads/master
2020-06-21T17:48:36.406564
2019-09-10T11:29:43
2019-09-10T11:29:43
197,150,967
0
0
null
null
null
null
UTF-8
Java
false
false
416
java
package java_20190725.step3; import java_20190725.step2.StopWatch; public class StopWatchDemo { public static void main(String[] args) { StopNanoWatch s1 = new StopNanoWatch(); s1.start(); for(long i=0;i<30_000_000_000L;i++) { } s1.stop(); double elapsedTime = s1.getElapsedTime(); System.out.printf("경과시간 : %.9f", elapsedTime); } }
[ "sch930214@naver.com" ]
sch930214@naver.com
661004c16319142c272b9a77154d9dffd40b1df1
8a5b996c283df9eb8f580cbf9fe34ecef2068413
/app/src/main/java/firebasepush/com/myapplication/MyFirebaseMessagingService.java
12c67836a5bd23a5d253543c480b29f20e09e352
[]
no_license
ranjeetlbsimds07/FireBasePushNotification
3b1be52b1733a016d4c3b9b7a180092fe9a4f0a3
0a2df0fc48a57f7cd7368ba2751bc7fb409e3b1e
refs/heads/master
2021-01-09T06:07:25.470030
2017-02-04T09:10:03
2017-02-04T09:10:03
80,908,118
0
0
null
null
null
null
UTF-8
Java
false
false
13,573
java
package firebasepush.com.myapplication; /** * Created by AndroidBash on 20-Aug-16. */ import android.app.NotificationManager; import android.app.PendingIntent; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.media.RingtoneManager; import android.net.Uri; import android.support.v4.app.NotificationCompat; import android.support.v4.app.TaskStackBuilder; import android.util.Log; import com.google.firebase.messaging.FirebaseMessagingService; import com.google.firebase.messaging.RemoteMessage; import java.io.InputStream; import java.net.HttpURLConnection; import java.net.URL; import java.util.ArrayList; import java.util.HashSet; public class MyFirebaseMessagingService extends FirebaseMessagingService { private static final String TAG = "FirebaseMessageService"; Bitmap bitmap; private static int numMessagesTwo = 0; public static ArrayList<String> msgList = new ArrayList<String>(); /** * Called when message is received. * * @param remoteMessage Object representing the message received from Firebase Cloud Messaging. */ @Override public void onMessageReceived(RemoteMessage remoteMessage) { // There are two types of messages data messages and notification messages. Data messages are handled // here in onMessageReceived whether the app is in the foreground or background. Data messages are the type // traditionally used with GCM. Notification messages are only received here in onMessageReceived when the app // is in the foreground. When the app is in the background an automatically generated notification is displayed. // When the user taps on the notification they are returned to the app. Messages containing both notification // and data payloads are treated as notification messages. The Firebase console always sends notification // messages. For more see: https://firebase.google.com/docs/cloud-messaging/concept-options // /* HashSet<String> setMesg = new HashSet<>(); setMesg.add("");*/ Log.d(TAG, "From: " + remoteMessage.getFrom()); // Check if message contains a data payload. if (remoteMessage.getData().size() > 0) { Log.d(TAG, "Message data payload: " + remoteMessage.getData()); } // Check if message contains a notification payload. if (remoteMessage.getNotification() != null) { Log.d(TAG, "Message Notification Body: " + remoteMessage.getNotification().getBody()); } //The message which i send will have keys named [message, image, AnotherActivity] and corresponding values. //You can change as per the requirement. //message will contain the Push Message String message = remoteMessage.getData().get("message"); //String message = remoteMessage.getNotification().getBody(); //imageUri will contain URL of the image to be displayed with Notification //String imageUri = remoteMessage.getData().get("image"); //If the key AnotherActivity has value as True then when the user taps on notification, in the app AnotherActivity will be opened. //If the key AnotherActivity has value as False then when the user taps on notification, in the app MainActivity will be opened. //String TrueOrFlase = remoteMessage.getData().get("AnotherActivity"); //To get a Bitmap image from the URL received //bitmap = getBitmapfromUrl(imageUri); //sendNotification(message, bitmap, TrueOrFlase); //sendNotification(message); msgList.add(message); sendNotificationMessg(msgList); } private void sendNotificationMessg(ArrayList<String> message) { if(message.size() == 1){ displayNotificationOne(message.get(0).toString()); }else{ displayNotificationTwo(message); } /* Intent intent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,PendingIntent.FLAG_ONE_SHOT); Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); android.support.v7.app.NotificationCompat.Builder mBuilder = (android.support.v7.app.NotificationCompat.Builder) new android.support.v7.app.NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_action_cloud) .setContentTitle("My notification") .setContentText(message) .setContentIntent(pendingIntent) .setSound(defaultSoundUri); // Gets an instance of the NotificationManager service// NotificationManager mNotificationManager =(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); //When you issue multiple notifications about the same type of event, it’s best practice for your app to try to update an existing notification with this new information, rather than immediately creating a new notification. If you want to update this notification at a later date, you need to assign it an ID. You can then use this ID whenever you issue a subsequent notification. If the previous notification is still visible, the system will update this existing notification, rather than create a new one. In this example, the notification’s ID is 001// mNotificationManager.notify(001, mBuilder.build());*/ } private void displayNotificationTwo(ArrayList<String> message) { // Invoking the default notification service NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this); mBuilder.setContentTitle("My notification"); mBuilder.setContentText("New message from javacodegeeks received..."); mBuilder.setTicker("Implicit: New Message Received!"); mBuilder.setSmallIcon(R.drawable.ic_action_cloud); NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle(); /* String[] events = new String[3]; events[0] = new String("1) Message for implicit intent"); events[1] = new String("2) big view Notification"); events[2] = new String("3) from javacodegeeks!"); */ // Sets a title for the Inbox style big view inboxStyle.setBigContentTitle("More Details:"); // Moves events into the big view for (int i=0; i < message.size(); i++) { inboxStyle.addLine(message.get(i)); } mBuilder.setStyle(inboxStyle); // Increase notification number every time a new notification arrives mBuilder.setNumber(++numMessagesTwo); // When the user presses the notification, it is auto-removed mBuilder.setAutoCancel(true); // Creates an implicit intent Intent resultIntent = new Intent("com.example.javacodegeeks.TEL_INTENT", Uri.parse("tel:123456789")); resultIntent.putExtra("from", "javacodegeeks"); TaskStackBuilder stackBuilder = TaskStackBuilder.create(this); stackBuilder.addParentStack(MainActivity.class); stackBuilder.addNextIntent(resultIntent); PendingIntent resultPendingIntent = stackBuilder.getPendingIntent( 0, PendingIntent.FLAG_ONE_SHOT ); mBuilder.setContentIntent(resultPendingIntent); NotificationManager myNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); myNotificationManager.notify(002, mBuilder.build()); /* // Invoking the default notification service NotificationCompat.Builder mBuilder = new NotificationCompat.Builder(this); mBuilder.setContentTitle("New Message with implicit intent"); mBuilder.setContentText("New message from javacodegeeks received..."); mBuilder.setTicker("Implicit: New Message Received!"); mBuilder.setSmallIcon(R.drawable.ic_action_cloud); NotificationCompat.InboxStyle inboxStyle = new NotificationCompat.InboxStyle(); String[] events = new String[3]; events[0] = new String("1) Message for implicit intent"); events[1] = new String("2) big view Notification"); events[2] = new String("3) from javacodegeeks!"); // Sets a title for the Inbox style big view inboxStyle.setBigContentTitle("More Details:"); // Moves events into the big view for (int i=0; i < events.length; i++) { inboxStyle.addLine(events[i]); } mBuilder.setStyle(inboxStyle); // Increase notification number every time a new notification arrives mBuilder.setNumber(++numMessagesTwo); // When the user presses the notification, it is auto-removed mBuilder.setAutoCancel(true); // Creates an implicit intent Intent resultIntent = new Intent("com.example.javacodegeeks.TEL_INTENT", Uri.parse("tel:123456789")); resultIntent.putExtra("from", "javacodegeeks"); TaskStackBuilder stackBuilder = TaskStackBuilder.create(this); stackBuilder.addParentStack(MainActivity.class); stackBuilder.addNextIntent(resultIntent); PendingIntent resultPendingIntent = stackBuilder.getPendingIntent( 0, PendingIntent.FLAG_ONE_SHOT ); mBuilder.setContentIntent(resultPendingIntent); NotificationManager myNotificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); myNotificationManager.notify(002, mBuilder.build()); */ } private void displayNotificationOne(String message) { Intent intent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, intent,PendingIntent.FLAG_ONE_SHOT); Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); android.support.v7.app.NotificationCompat.Builder mBuilder = (android.support.v7.app.NotificationCompat.Builder) new android.support.v7.app.NotificationCompat.Builder(this) .setSmallIcon(R.drawable.ic_action_cloud) .setContentTitle("My notification") .setContentText(message) .setContentIntent(pendingIntent) .setSound(defaultSoundUri) .setAutoCancel(true); // Gets an instance of the NotificationManager service// NotificationManager mNotificationManager =(NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); //When you issue multiple notifications about the same type of event, it’s best practice for your app to try to update an existing notification with this new information, rather than immediately creating a new notification. If you want to update this notification at a later date, you need to assign it an ID. You can then use this ID whenever you issue a subsequent notification. If the previous notification is still visible, the system will update this existing notification, rather than create a new one. In this example, the notification’s ID is 001// mNotificationManager.notify(001, mBuilder.build()); AppClass.msgList.clear(); // mNotificationManager.cancelAll(); } /** * Create and show a simple notification containing the received FCM message. */ //private void sendNotification(String messageBody, Bitmap image, String TrueOrFalse) { private void sendNotification(String messageBody) { Intent intent = new Intent(this, MainActivity.class); PendingIntent pendingIntent = PendingIntent.getActivity(this, 0 /* Request code */, intent, PendingIntent.FLAG_ONE_SHOT); Uri defaultSoundUri = RingtoneManager.getDefaultUri(RingtoneManager.TYPE_NOTIFICATION); NotificationCompat.Builder notificationBuilder = new NotificationCompat.Builder(this) //.setLargeIcon(image)/*Notification icon image*/ //.setSmallIcon(R.drawable.firebase_icon) .setContentTitle(messageBody) //.setStyle(new NotificationCompat.BigPictureStyle() // .bigPicture(image))/*Notification with Image*/ .setAutoCancel(true) .setSound(defaultSoundUri) .setContentIntent(pendingIntent); NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE); notificationManager.notify(0 /* ID of notification */, notificationBuilder.build()); } /* *To get a Bitmap image from the URL received * */ public Bitmap getBitmapfromUrl(String imageUrl) { try { URL url = new URL(imageUrl); HttpURLConnection connection = (HttpURLConnection) url.openConnection(); connection.setDoInput(true); connection.connect(); InputStream input = connection.getInputStream(); Bitmap bitmap = BitmapFactory.decodeStream(input); return bitmap; } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); return null; } } }
[ "rsranjeet086@gmail.com" ]
rsranjeet086@gmail.com
2636fdfdbf1c319c518ce11365aeacb04161eaea
e67fd34b387c2fd1ff7a714bfb178f54eb91c07c
/DADS_0613/src/com/cloud/mina/util/ByteUtil.java
a4ab5ac4e1b30dc71c3c7900928a5e9e8801dadc
[]
no_license
wangXiGits/DADS_0613
36fb6a864dbee0b7dd2b3db59f84eec0eaf32eb8
75475a23c17b29505ba3469d1522576e81300387
refs/heads/master
2021-09-04T09:22:23.566632
2018-01-17T17:26:01
2018-01-17T17:26:01
null
0
0
null
null
null
null
UTF-8
Java
false
false
8,652
java
package com.cloud.mina.util; /** * * <ul> * <li>锟侥硷拷锟斤拷锟� com.born.util.ByteUtil.java</li> * <li>锟侥硷拷锟斤拷锟斤拷: byte转锟斤拷锟斤拷锟斤拷</li> * <li>锟斤拷权锟斤拷锟斤拷: 锟斤拷权锟斤拷锟斤拷(C)2001-2006</li> * <li>锟斤拷 司: bran</li> * <li>锟斤拷锟斤拷摘要:</li> * <li>锟斤拷锟斤拷说锟斤拷:</li> * <li>锟斤拷锟斤拷锟斤拷冢锟�011-7-18</li> * <li>锟睫改硷拷录0锟斤拷锟斤拷</li> * </ul> * * @version 1.0 * @author 锟斤拷锟斤拷锟斤拷 */ public class ByteUtil { /** * 转锟斤拷short为byte * * @param b * @param s * 锟斤拷要转锟斤拷锟斤拷short * @param index */ public static void putShort(byte b[], short s, int index) { b[index + 1] = (byte) (s >> 8); b[index + 0] = (byte) (s >> 0); } public static void putShortByLarge(byte b[], short s, int index) { b[index + 0] = (byte) (s >> 8); b[index + 1] = (byte) (s >> 0); } /** * 通锟斤拷byte锟斤拷锟斤拷取锟斤拷short * * @param b * @param index * 锟节硷拷位锟斤拷始取 * @return */ public static short getShort(byte[] b, int index) { return (short) (((b[index + 1] << 8) | b[index + 0] & 0xff)); } /** * 转锟斤拷int为byte锟斤拷锟斤拷 * * @param bb * @param x * @param index */ public static void putInt(byte[] bb, int x, int index) { bb[index + 3] = (byte) (x >> 24); bb[index + 2] = (byte) (x >> 16); bb[index + 1] = (byte) (x >> 8); bb[index + 0] = (byte) (x >> 0); } /** * 通锟斤拷byte锟斤拷锟斤拷取锟斤拷int * * @param bb * @param index * 锟节硷拷位锟斤拷始 * @return */ public static int getInt(byte[] bb, int index) { return (int) ((((bb[index + 3] & 0xff) << 24) | ((bb[index + 2] & 0xff) << 16) | ((bb[index + 1] & 0xff) << 8) | ((bb[index + 0] & 0xff) << 0))); } /** * 转锟斤拷long锟斤拷为byte锟斤拷锟斤拷 * * @param bb * @param x * @param index */ public static void putLong(byte[] bb, long x, int index) { bb[index + 7] = (byte) (x >> 56); bb[index + 6] = (byte) (x >> 48); bb[index + 5] = (byte) (x >> 40); bb[index + 4] = (byte) (x >> 32); bb[index + 3] = (byte) (x >> 24); bb[index + 2] = (byte) (x >> 16); bb[index + 1] = (byte) (x >> 8); bb[index + 0] = (byte) (x >> 0); } /** * 通锟斤拷byte锟斤拷锟斤拷取锟斤拷long * * @param bb * @param index * @return */ public static long getLong(byte[] bb, int index) { return ((((long) bb[index + 7] & 0xff) << 56) | (((long) bb[index + 6] & 0xff) << 48) | (((long) bb[index + 5] & 0xff) << 40) | (((long) bb[index + 4] & 0xff) << 32) | (((long) bb[index + 3] & 0xff) << 24) | (((long) bb[index + 2] & 0xff) << 16) | (((long) bb[index + 1] & 0xff) << 8) | (((long) bb[index + 0] & 0xff) << 0)); } /** * 锟街凤拷锟街斤拷转锟斤拷 * * @param ch * @return */ public static void putChar(byte[] bb, char ch, int index) { int temp = (int) ch; // byte[] b = new byte[2]; for (int i = 0; i < 2; i ++ ) { bb[index + i] = new Integer(temp & 0xff).byteValue(); // 锟斤拷锟斤拷锟轿伙拷锟斤拷锟斤拷锟斤拷锟斤拷位 temp = temp >> 8; // 锟斤拷锟斤拷锟斤拷8位 } } /** * 锟街节碉拷锟街凤拷转锟斤拷 * * @param b * @return */ public static char getChar(byte[] b, int index) { int s = 0; if (b[index + 1] > 0) s += b[index + 1]; else s += 256 + b[index + 0]; s *= 256; if (b[index + 0] > 0) s += b[index + 1]; else s += 256 + b[index + 0]; char ch = (char) s; return ch; } /** * float转锟斤拷byte * * @param bb * @param x * @param index */ public static void putFloat(byte[] bb, float x, int index) { // byte[] b = new byte[4]; int l = Float.floatToIntBits(x); for (int i = 0; i < 4; i++) { bb[index + i] = new Integer(l).byteValue(); l = l >> 8; } } /** * 通锟斤拷byte锟斤拷锟斤拷取锟斤拷float * * @param bb * @param index * @return */ public static float getFloat(byte[] b, int index) { int l; l = b[index + 0]; l &= 0xff; l |= ((long) b[index + 1] << 8); l &= 0xffff; l |= ((long) b[index + 2] << 16); l &= 0xffffff; l |= ((long) b[index + 3] << 24); return Float.intBitsToFloat(l); } /** * double转锟斤拷byte * * @param bb * @param x * @param index */ public static void putDouble(byte[] bb, double x, int index) { // byte[] b = new byte[8]; long l = Double.doubleToLongBits(x); for (int i = 0; i < 4; i++) { bb[index + i] = new Long(l).byteValue(); l = l >> 8; } } /** * 通锟斤拷byte锟斤拷锟斤拷取锟斤拷float * * @param bb * @param index * @return */ public static double getDouble(byte[] b, int index) { long l; l = b[0]; l &= 0xff; l |= ((long) b[1] << 8); l &= 0xffff; l |= ((long) b[2] << 16); l &= 0xffffff; l |= ((long) b[3] << 24); l &= 0xffffffffl; l |= ((long) b[4] << 32); l &= 0xffffffffffl; l |= ((long) b[5] << 40); l &= 0xffffffffffffl; l |= ((long) b[6] << 48); l &= 0xffffffffffffffl; l |= ((long) b[7] << 56); return Double.longBitsToDouble(l); } /** * * @param intValue * @return */ // add by guoyh for PWS0006 20130731 ; This is used to send param info to stepcounter(MainThread.java) public static byte intToUnsignedByte(int intValue) { byte resultByte = 0; int temp = intValue % 256; if ( intValue < 0) { resultByte = (byte)(temp < -128 ? 256 + temp : temp); } else { resultByte = (byte)(temp > 127 ? temp - 256 : temp); } return resultByte; } /** * int值转成4字节的byte数组 * @param num * @return */ public static byte[] int2byteArray(int num) { byte[] result = new byte[4]; result[0] = (byte)(num >>> 24);//取最高8位放到0下标 result[1] = (byte)(num >>> 16);//取次高8为放到1下标 result[2] = (byte)(num >>> 8); //取次低8位放到2下标 result[3] = (byte)(num ); //取最低8位放到3下标 return result; } /** * 将4字节的byte数组转成int值 * @param b * @return */ public static int byteArray2int(byte[] b){ byte[] a = new byte[4]; int i = a.length - 1,j = b.length - 1; for (; i >= 0 ; i--,j--) {//从b的尾部(即int值的低位)开始copy数据 if(j >= 0) a[i] = b[j]; else a[i] = 0;//如果b.length不足4,则将高位补0 } int v0 = (a[0] & 0xff) << 24;//&0xff将byte值无差异转成int,避免Java自动类型提升后,会保留高位的符号位 int v1 = (a[1] & 0xff) << 16; int v2 = (a[2] & 0xff) << 8; int v3 = (a[3] & 0xff) ; return v0 + v1 + v2 + v3; } /** * 将int类型存入到字节数组 大端 * @param bb * @param x * @param index * void */ public static void putIntByLarge(byte[] bb, int x, int index) { bb[index + 0] = (byte) (x >> 24); bb[index + 1] = (byte) (x >> 16); bb[index + 2] = (byte) (x >> 8); bb[index + 3] = (byte) (x >> 0); } /** * 通过byte数组取到int 小端模式 * * @param bb oxff 二进制 1111 1111 * @param index * 第几位开始 * @return */ public static int getIntByLittlePattern(byte[] bb, int index) { return (int) ((((bb[index + 3] & 0xff) << 24) | ((bb[index + 2] & 0xff) << 16) | ((bb[index + 1] & 0xff) << 8) | ((bb[index + 0] & 0xff) << 0))); } /** * 通过byte数组取到short 小端 * * @param b * @param index * 第几位开始取 * @return >>n想右移动n位 <<n 像左移动n位 */ public static short getShortByLittlePattern(byte[] b, int index) { return (short) (((b[index + 1] << 8) | b[index + 0] & 0xff)); } /** * 通过byte数组取到short 大端 * * @param b * @param index * 第几位开始取 * @return */ public static short getShortByLargePattern(byte[] b, int index) { return (short) (((b[index + 0] << 8) | b[index + 1] & 0xff)); } public static void main(String[] args) { System.out.println(ByteUtil.intToUnsignedByte(189)); } }
[ "zhuanshenbsj@163.com" ]
zhuanshenbsj@163.com
015449c20115dad871ade3a726d0312f9946ae55
9a819f7453058e9fbc56953a4968779406746c88
/src/main/java/com/github/czyzby/lml/vis/parser/impl/attribute/tabbed/tab/TabDirtyLmlAttribute.java
db72b3e89c88905cbb7f0c75823ff944864c3a15
[ "Apache-2.0" ]
permissive
Mr00Anderson/gdx-liftoff
4ca544b599060702ccc46194602c4490eff2388f
c3a1a76ed9ec76531d7e9785fc4c4b8cda030e94
refs/heads/master
2022-11-06T06:13:05.351231
2020-05-29T19:57:04
2020-05-29T19:57:04
267,970,273
0
0
Apache-2.0
2020-05-29T22:53:40
2020-05-29T22:53:39
null
UTF-8
Java
false
false
1,291
java
package com.github.czyzby.lml.vis.parser.impl.attribute.tabbed.tab; import com.github.czyzby.lml.parser.LmlParser; import com.github.czyzby.lml.parser.action.ActorConsumer; import com.github.czyzby.lml.parser.tag.LmlAttribute; import com.github.czyzby.lml.parser.tag.LmlTag; import com.github.czyzby.lml.util.LmlUtilities; import com.github.czyzby.lml.vis.ui.VisTabTable; /** See {@link com.kotcrab.vis.ui.widget.tabbedpane.Tab#setDirty(boolean)}. Mapped to "dirty". * * @author MJ */ public class TabDirtyLmlAttribute implements LmlAttribute<VisTabTable> { @Override public Class<VisTabTable> getHandledType() { return VisTabTable.class; } @Override public void process(final LmlParser parser, final LmlTag tag, final VisTabTable actor, final String rawAttributeData) { // Dirty setting has to be managed before other settings (savable in particular), so we're adding this as an // onCreate action: LmlUtilities.getLmlUserObject(actor).addOnCreateAction(new ActorConsumer<Object, Object>() { @Override public Object consume(final Object widget) { actor.getTab().setDirty(parser.parseBoolean(rawAttributeData, actor)); return null; } }); } }
[ "tommy.ettinger@gmail.com" ]
tommy.ettinger@gmail.com
9c304e29dfb16f3dc4fad8080a9cbd4ca71fe536
8e39bd80003a2e515f178be96dc45a9cab74fb2d
/GPI3/app/src/androidTest/java/com/project/mizan/gpi/ApplicationTest.java
418fe4ed7c3c643a2fcc39ec1f720a2782d826c5
[]
no_license
mizan-cs/Android_Projects
de537824abd91d4a480e22f318dd5da35b86e76e
270720108f599ffdaace5788bfed47fec638a07d
refs/heads/master
2021-01-19T14:00:19.086484
2017-08-20T16:32:48
2017-08-20T16:32:48
100,873,320
0
0
null
null
null
null
UTF-8
Java
false
false
352
java
package com.project.mizan.gpi; import android.app.Application; import android.test.ApplicationTestCase; /** * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> */ public class ApplicationTest extends ApplicationTestCase<Application> { public ApplicationTest() { super(Application.class); } }
[ "mysalfe02@gmail.com" ]
mysalfe02@gmail.com
98d7861fd1dcaacca68787446a64e11fe8ea704f
92713f7dea374390d5f173370ddd688521764d6d
/src/main/java/ru/inno/shop/service/cart/CartDetailsService.java
c76cd4d892f5582eeb878e9dad5a986175e182cb
[]
no_license
ChernovArtem/Bookshop
199526b7f765f522e627d1efccdfac4c085ca0d2
c35338787b917448af166b94fcf0d5f6a18b2f73
refs/heads/main
2023-06-21T21:58:09.395874
2021-07-13T07:49:31
2021-07-13T07:49:31
385,518,686
1
0
null
null
null
null
UTF-8
Java
false
false
1,036
java
package ru.inno.shop.service.cart; import ru.inno.shop.model.cart.Cart; import ru.inno.shop.model.cart.CartDetails; import javax.transaction.Transactional; import java.util.Optional; /** * @author Артём Матюнин * Сервис списка покупок в корзине */ public interface CartDetailsService { /** * Сохранение товара в корзине или обновление его количества, если он там есть * * @param cartDetail объект для сохранения в БД * @return Запрошенное количество в случае успеха, или количество на складе, если обновление не прошло. */ @Transactional int saveOrUpdateCartDetail(CartDetails cartDetail); /** * @param cartDetail Удаляемый из корзины товар */ @Transactional void deleteCartDetail(CartDetails cartDetail); void deleteAllByCart(Cart cart); }
[ "tema3648@gmail.com" ]
tema3648@gmail.com
660910bafbbf9a6eadf2ceec0fd44e7693cb12fd
06f7bd5ee2773c2a5599575235e3dc934799b9df
/rundeckapp/src/main/groovy/com/dtolabs/rundeck/server/plugins/services/UIPluginProviderService.java
c96ab17079c802611d13b94db58cfdbe4be5ee7f
[ "Apache-2.0" ]
permissive
rundeck/rundeck
46c6fb57d7bf7b1ff890908eb4cb1ee8078c09b4
7c5000f2929c3f07b9ff7d08981dc7738da3372d
refs/heads/main
2023-09-01T19:48:37.654990
2023-09-01T19:08:15
2023-09-01T19:08:15
886,774
4,827
1,022
Apache-2.0
2023-09-14T21:51:34
2010-09-03T22:11:25
Groovy
UTF-8
Java
false
false
1,987
java
/* * Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.dtolabs.rundeck.server.plugins.services; import com.dtolabs.rundeck.core.common.Framework; import com.dtolabs.rundeck.core.plugins.*; import com.dtolabs.rundeck.plugins.rundeck.UIPlugin; /** * Created by greg on 8/26/16. */ public class UIPluginProviderService extends FrameworkPluggableProviderService<UIPlugin> implements ScriptPluginProviderLoadable<UIPlugin> { public static final String SERVICE_NAME = "UI"; private ServiceProviderLoader rundeckServerServiceProviderLoader; public UIPluginProviderService(final Framework framework) { super(SERVICE_NAME, framework, UIPlugin.class); } @Override public ServiceProviderLoader getPluginManager() { return rundeckServerServiceProviderLoader; } public ServiceProviderLoader getRundeckServerServiceProviderLoader() { return rundeckServerServiceProviderLoader; } public void setRundeckServerServiceProviderLoader(ServiceProviderLoader rundeckServerServiceProviderLoader) { this.rundeckServerServiceProviderLoader = rundeckServerServiceProviderLoader; } @Override public UIPlugin createScriptProviderInstance(ScriptPluginProvider provider) throws PluginException { ScriptUIPlugin.validateScriptPlugin(provider); return new ScriptUIPlugin(provider, getFramework()); } }
[ "greg.schueler@gmail.com" ]
greg.schueler@gmail.com
11ac6b90b494e1d54dd058f2e932a75ab3bf8c5d
fa91450deb625cda070e82d5c31770be5ca1dec6
/Diff-Raw-Data/31/31_356371ed5736d579bc2118f98f2386bfd7e12b3a/Constants/31_356371ed5736d579bc2118f98f2386bfd7e12b3a_Constants_s.java
e9faa04e30aba3cf7f05da08304913d10b9a5515
[]
no_license
zhongxingyu/Seer
48e7e5197624d7afa94d23f849f8ea2075bcaec0
c11a3109fdfca9be337e509ecb2c085b60076213
refs/heads/master
2023-07-06T12:48:55.516692
2023-06-22T07:55:56
2023-06-22T07:55:56
259,613,157
6
2
null
2023-06-22T07:55:57
2020-04-28T11:07:49
null
UTF-8
Java
false
false
33,622
java
package nl.sense_os.commonsense.client.common.constants; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import nl.sense_os.commonsense.client.auth.SessionManager; import com.extjs.gxt.ui.client.data.BaseModelData; import com.extjs.gxt.ui.client.data.ModelData; import com.google.gwt.core.client.GWT; public class Constants { /** * Flag for Stable mode. <code>true</code> if the app is deployed to common.sense-os.nl. */ public static final boolean STABLE_MODE = GWT.getModuleBaseURL().contains("common.sense-os.nl"); /** * Flag for 'ted' mode. <code>true</code> if the app is deployed to * commonsense-test.appspot.com. */ public static final boolean TED_MODE = GWT.getModuleBaseURL().contains( "commonsense-test.appspot.com"); /** * Flag for dev mode. <code>true</code> if the app is deployed to common.dev.sense-os.nl. */ public static final boolean DEV_MODE = !GWT.isProdMode() || GWT.getModuleBaseURL().contains("common.dev.sense-os.nl"); /** * Flag for Apigee test mode. <code>true</code> if the app is deployed to * apigee.common.sense-os.nl. */ public static final boolean APIGEE_MODE = GWT.getModuleBaseURL().contains( "apigee.common.sense-os.nl"); /** * Flag for Release Candidate mode. <code>true</code> if the app is deployed to rc.sense-os.nl. */ public static final boolean RC_MODE = GWT.getModuleBaseURL().contains("rc.sense-os.nl"); /** * Flag for local mode. <code>true</code> if the app is deployed to an unknown location. */ public static final boolean GENERIC_MODE = !STABLE_MODE && !TED_MODE && !DEV_MODE && !APIGEE_MODE && !RC_MODE; /** * true if shortcut 'hacks' for easy developing are allowed */ public static final boolean ALLOW_HACKS = !GWT.isProdMode(); /** * Registry key for the list of all devices for the current user */ public static final String REG_DEVICE_LIST = "DevicesList"; /** * Registry key for the list of all environments for the current user */ public static final String REG_ENVIRONMENT_LIST = "EnvironmentList"; /** * Registry key for the list of groups for the current user */ public static final String REG_GROUPS = "Groups"; /** * Registry key for the list of all sensors for the current user */ public static final String REG_SENSOR_LIST = "SensorsList"; /** * Registry key for the list of services for the current user */ public static final String REG_SERVICES = "Services"; /** * Registry key for the session ID, stored as String * * @deprecated Use {@link SessionManager} instead */ @Deprecated public static final String REG_SESSION_ID = "SessionId"; /** * Registry key for the current User */ public static final String REG_USER = "User"; /** * Registry key for the visualization panel */ public static final String REG_VIZPANEL = "VizPanel"; private Constants() { // Private constructor to make sure this class is not instantiated. } public static List<ModelData> getCountries() { List<ModelData> countries = new ArrayList<ModelData>(); HashMap<String, Object> properties = new HashMap<String, Object>(); properties.put("text", "AFGHANISTAN"); properties.put("code", "AF"); countries.add(new BaseModelData(properties)); properties.put("text", "\u00c5LAND ISLANDS"); properties.put("code", "AX"); countries.add(new BaseModelData(properties)); properties.put("text", "ALBANIA"); properties.put("code", "AL"); countries.add(new BaseModelData(properties)); properties.put("text", "ALGERIA"); properties.put("code", "DZ"); countries.add(new BaseModelData(properties)); properties.put("text", "AMERICAN SAMOA"); properties.put("code", "AS"); countries.add(new BaseModelData(properties)); properties.put("text", "ANDORRA"); properties.put("code", "AD"); countries.add(new BaseModelData(properties)); properties.put("text", "ANGOLA"); properties.put("code", "AO"); countries.add(new BaseModelData(properties)); properties.put("text", "ANGUILLA"); properties.put("code", "AI"); countries.add(new BaseModelData(properties)); properties.put("text", "ANTARCTICA"); properties.put("code", "AQ"); countries.add(new BaseModelData(properties)); properties.put("text", "ANTIGUA AND BARBUDA"); properties.put("code", "AG"); countries.add(new BaseModelData(properties)); properties.put("text", "ARGENTINA"); properties.put("code", "AR"); countries.add(new BaseModelData(properties)); properties.put("text", "ARMENIA"); properties.put("code", "AM"); countries.add(new BaseModelData(properties)); properties.put("text", "ARUBA"); properties.put("code", "AW"); countries.add(new BaseModelData(properties)); properties.put("text", "AUSTRALIA"); properties.put("code", "AU"); countries.add(new BaseModelData(properties)); properties.put("text", "AUSTRIA"); properties.put("code", "AT"); countries.add(new BaseModelData(properties)); properties.put("text", "AZERBAIJAN"); properties.put("code", "AZ"); countries.add(new BaseModelData(properties)); properties.put("text", "BAHAMAS"); properties.put("code", "BS"); countries.add(new BaseModelData(properties)); properties.put("text", "BAHRAIN"); properties.put("code", "BH"); countries.add(new BaseModelData(properties)); properties.put("text", "BANGLADESH"); properties.put("code", "BD"); countries.add(new BaseModelData(properties)); properties.put("text", "BARBADOS"); properties.put("code", "BB"); countries.add(new BaseModelData(properties)); properties.put("text", "BELARUS"); properties.put("code", "BY"); countries.add(new BaseModelData(properties)); properties.put("text", "BELGIUM"); properties.put("code", "BE"); countries.add(new BaseModelData(properties)); properties.put("text", "BELIZE"); properties.put("code", "BZ"); countries.add(new BaseModelData(properties)); properties.put("text", "BENIN"); properties.put("code", "BJ"); countries.add(new BaseModelData(properties)); properties.put("text", "BERMUDA"); properties.put("code", "BM"); countries.add(new BaseModelData(properties)); properties.put("text", "BHUTAN"); properties.put("code", "BT"); countries.add(new BaseModelData(properties)); properties.put("text", "BOLIVIA, PLURINATIONAL STATE OF"); properties.put("code", "BO"); countries.add(new BaseModelData(properties)); properties.put("text", "BONAIRE, SINT EUSTATIUS AND SABA"); properties.put("code", "BQ"); countries.add(new BaseModelData(properties)); properties.put("text", "BOSNIA AND HERZEGOVINA"); properties.put("code", "BA"); countries.add(new BaseModelData(properties)); properties.put("text", "BOTSWANA"); properties.put("code", "BW"); countries.add(new BaseModelData(properties)); properties.put("text", "BOUVET ISLAND"); properties.put("code", "BV"); countries.add(new BaseModelData(properties)); properties.put("text", "BRAZIL"); properties.put("code", "BR"); countries.add(new BaseModelData(properties)); properties.put("text", "BRITISH INDIAN OCEAN TERRITORY"); properties.put("code", "IO"); countries.add(new BaseModelData(properties)); properties.put("text", "BRUNEI DARUSSALAM"); properties.put("code", "BN"); countries.add(new BaseModelData(properties)); properties.put("text", "BULGARIA"); properties.put("code", "BG"); countries.add(new BaseModelData(properties)); properties.put("text", "BURKINA FASO"); properties.put("code", "BF"); countries.add(new BaseModelData(properties)); properties.put("text", "BURUNDI"); properties.put("code", "BI"); countries.add(new BaseModelData(properties)); properties.put("text", "CAMBODIA"); properties.put("code", "KH"); countries.add(new BaseModelData(properties)); properties.put("text", "CAMEROON"); properties.put("code", "CM"); countries.add(new BaseModelData(properties)); properties.put("text", "CANADA"); properties.put("code", "CA"); countries.add(new BaseModelData(properties)); properties.put("text", "CAPE VERDE"); properties.put("code", "CV"); countries.add(new BaseModelData(properties)); properties.put("text", "CAYMAN ISLANDS"); properties.put("code", "KY"); countries.add(new BaseModelData(properties)); properties.put("text", "CENTRAL AFRICAN REPUBLIC"); properties.put("code", "CF"); countries.add(new BaseModelData(properties)); properties.put("text", "CHAD"); properties.put("code", "TD"); countries.add(new BaseModelData(properties)); properties.put("text", "CHILE"); properties.put("code", "CL"); countries.add(new BaseModelData(properties)); properties.put("text", "CHINA"); properties.put("code", "CN"); countries.add(new BaseModelData(properties)); properties.put("text", "CHRISTMAS ISLAND"); properties.put("code", "CX"); countries.add(new BaseModelData(properties)); properties.put("text", "COCOS (KEELING) ISLANDS"); properties.put("code", "CC"); countries.add(new BaseModelData(properties)); properties.put("text", "COLOMBIA"); properties.put("code", "CO"); countries.add(new BaseModelData(properties)); properties.put("text", "COMOROS"); properties.put("code", "KM"); countries.add(new BaseModelData(properties)); properties.put("text", "CONGO"); properties.put("code", "CG"); countries.add(new BaseModelData(properties)); properties.put("text", "CONGO, THE DEMOCRATIC REPUBLIC OF THE"); properties.put("code", "CD"); countries.add(new BaseModelData(properties)); properties.put("text", "COOK ISLANDS"); properties.put("code", "CK"); countries.add(new BaseModelData(properties)); properties.put("text", "COSTA RICA"); properties.put("code", "CR"); countries.add(new BaseModelData(properties)); properties.put("text", "C\u00d4TE D'IVOIRE"); properties.put("code", "CI"); countries.add(new BaseModelData(properties)); properties.put("text", "CROATIA"); properties.put("code", "HR"); countries.add(new BaseModelData(properties)); properties.put("text", "CUBA"); properties.put("code", "CU"); countries.add(new BaseModelData(properties)); properties.put("text", "CURA�AO"); properties.put("code", "CW"); countries.add(new BaseModelData(properties)); properties.put("text", "CYPRUS"); properties.put("code", "CY"); countries.add(new BaseModelData(properties)); properties.put("text", "CZECH REPUBLIC"); properties.put("code", "CZ"); countries.add(new BaseModelData(properties)); properties.put("text", "DENMARK"); properties.put("code", "DK"); countries.add(new BaseModelData(properties)); properties.put("text", "DJIBOUTI"); properties.put("code", "DJ"); countries.add(new BaseModelData(properties)); properties.put("text", "DOMINICA"); properties.put("code", "DM"); countries.add(new BaseModelData(properties)); properties.put("text", "DOMINICAN REPUBLIC"); properties.put("code", "DO"); countries.add(new BaseModelData(properties)); properties.put("text", "ECUADOR"); properties.put("code", "EC"); countries.add(new BaseModelData(properties)); properties.put("text", "EGYPT"); properties.put("code", "EG"); countries.add(new BaseModelData(properties)); properties.put("text", "EL SALVADOR"); properties.put("code", "SV"); countries.add(new BaseModelData(properties)); properties.put("text", "EQUATORIAL GUINEA"); properties.put("code", "GQ"); countries.add(new BaseModelData(properties)); properties.put("text", "ERITREA"); properties.put("code", "ER"); countries.add(new BaseModelData(properties)); properties.put("text", "ESTONIA"); properties.put("code", "EE"); countries.add(new BaseModelData(properties)); properties.put("text", "ETHIOPIA"); properties.put("code", "ET"); countries.add(new BaseModelData(properties)); properties.put("text", "FALKLAND ISLANDS (MALVINAS)"); properties.put("code", "FK"); countries.add(new BaseModelData(properties)); properties.put("text", "FAROE ISLANDS"); properties.put("code", "FO"); countries.add(new BaseModelData(properties)); properties.put("text", "FIJI"); properties.put("code", "FJ"); countries.add(new BaseModelData(properties)); properties.put("text", "FINLAND"); properties.put("code", "FI"); countries.add(new BaseModelData(properties)); properties.put("text", "FRANCE"); properties.put("code", "FR"); countries.add(new BaseModelData(properties)); properties.put("text", "FRENCH GUIANA"); properties.put("code", "GF"); countries.add(new BaseModelData(properties)); properties.put("text", "FRENCH POLYNESIA"); properties.put("code", "PF"); countries.add(new BaseModelData(properties)); properties.put("text", "FRENCH SOUTHERN TERRITORIES"); properties.put("code", "TF"); countries.add(new BaseModelData(properties)); properties.put("text", "GABON"); properties.put("code", "GA"); countries.add(new BaseModelData(properties)); properties.put("text", "GAMBIA"); properties.put("code", "GM"); countries.add(new BaseModelData(properties)); properties.put("text", "GEORGIA"); properties.put("code", "GE"); countries.add(new BaseModelData(properties)); properties.put("text", "GERMANY"); properties.put("code", "DE"); countries.add(new BaseModelData(properties)); properties.put("text", "GHANA"); properties.put("code", "GH"); countries.add(new BaseModelData(properties)); properties.put("text", "GIBRALTAR"); properties.put("code", "GI"); countries.add(new BaseModelData(properties)); properties.put("text", "GREECE"); properties.put("code", "GR"); countries.add(new BaseModelData(properties)); properties.put("text", "GREENLAND"); properties.put("code", "GL"); countries.add(new BaseModelData(properties)); properties.put("text", "GRENADA"); properties.put("code", "GD"); countries.add(new BaseModelData(properties)); properties.put("text", "GUADELOUPE"); properties.put("code", "GP"); countries.add(new BaseModelData(properties)); properties.put("text", "GUAM"); properties.put("code", "GU"); countries.add(new BaseModelData(properties)); properties.put("text", "GUATEMALA"); properties.put("code", "GT"); countries.add(new BaseModelData(properties)); properties.put("text", "GUERNSEY"); properties.put("code", "GG"); countries.add(new BaseModelData(properties)); properties.put("text", "GUINEA"); properties.put("code", "GN"); countries.add(new BaseModelData(properties)); properties.put("text", "GUINEA-BISSAU"); properties.put("code", "GW"); countries.add(new BaseModelData(properties)); properties.put("text", "GUYANA"); properties.put("code", "GY"); countries.add(new BaseModelData(properties)); properties.put("text", "HAITI"); properties.put("code", "HT"); countries.add(new BaseModelData(properties)); properties.put("text", "HEARD ISLAND AND MCDONALD ISLANDS"); properties.put("code", "HM"); countries.add(new BaseModelData(properties)); properties.put("text", "HOLY SEE (VATICAN CITY STATE)"); properties.put("code", "VA"); countries.add(new BaseModelData(properties)); properties.put("text", "HONDURAS"); properties.put("code", "HN"); countries.add(new BaseModelData(properties)); properties.put("text", "HONG KONG"); properties.put("code", "HK"); countries.add(new BaseModelData(properties)); properties.put("text", "HUNGARY"); properties.put("code", "HU"); countries.add(new BaseModelData(properties)); properties.put("text", "ICELAND"); properties.put("code", "IS"); countries.add(new BaseModelData(properties)); properties.put("text", "INDIA"); properties.put("code", "IN"); countries.add(new BaseModelData(properties)); properties.put("text", "INDONESIA"); properties.put("code", "ID"); countries.add(new BaseModelData(properties)); properties.put("text", "IRAN, ISLAMIC REPUBLIC OF"); properties.put("code", "IR"); countries.add(new BaseModelData(properties)); properties.put("text", "IRAQ"); properties.put("code", "IQ"); countries.add(new BaseModelData(properties)); properties.put("text", "IRELAND"); properties.put("code", "IE"); countries.add(new BaseModelData(properties)); properties.put("text", "ISLE OF MAN"); properties.put("code", "IM"); countries.add(new BaseModelData(properties)); properties.put("text", "ISRAEL"); properties.put("code", "IL"); countries.add(new BaseModelData(properties)); properties.put("text", "ITALY"); properties.put("code", "IT"); countries.add(new BaseModelData(properties)); properties.put("text", "JAMAICA"); properties.put("code", "JM"); countries.add(new BaseModelData(properties)); properties.put("text", "JAPAN"); properties.put("code", "JP"); countries.add(new BaseModelData(properties)); properties.put("text", "JERSEY"); properties.put("code", "JE"); countries.add(new BaseModelData(properties)); properties.put("text", "JORDAN"); properties.put("code", "JO"); countries.add(new BaseModelData(properties)); properties.put("text", "KAZAKHSTAN"); properties.put("code", "KZ"); countries.add(new BaseModelData(properties)); properties.put("text", "KENYA"); properties.put("code", "KE"); countries.add(new BaseModelData(properties)); properties.put("text", "KIRIBATI"); properties.put("code", "KI"); countries.add(new BaseModelData(properties)); properties.put("text", "KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF"); properties.put("code", "KP"); countries.add(new BaseModelData(properties)); properties.put("text", "KOREA, REPUBLIC OF"); properties.put("code", "KR"); countries.add(new BaseModelData(properties)); properties.put("text", "KUWAIT"); properties.put("code", "KW"); countries.add(new BaseModelData(properties)); properties.put("text", "KYRGYZSTAN"); properties.put("code", "KG"); countries.add(new BaseModelData(properties)); properties.put("text", "LAO PEOPLE'S DEMOCRATIC REPUBLIC"); properties.put("code", "LA"); countries.add(new BaseModelData(properties)); properties.put("text", "LATVIA"); properties.put("code", "LV"); countries.add(new BaseModelData(properties)); properties.put("text", "LEBANON"); properties.put("code", "LB"); countries.add(new BaseModelData(properties)); properties.put("text", "LESOTHO"); properties.put("code", "LS"); countries.add(new BaseModelData(properties)); properties.put("text", "LIBERIA"); properties.put("code", "LR"); countries.add(new BaseModelData(properties)); properties.put("text", "LIBYAN ARAB JAMAHIRIYA"); properties.put("code", "LY"); countries.add(new BaseModelData(properties)); properties.put("text", "LIECHTENSTEIN"); properties.put("code", "LI"); countries.add(new BaseModelData(properties)); properties.put("text", "LITHUANIA"); properties.put("code", "LT"); countries.add(new BaseModelData(properties)); properties.put("text", "LUXEMBOURG"); properties.put("code", "LU"); countries.add(new BaseModelData(properties)); properties.put("text", "MACAO"); properties.put("code", "MO"); countries.add(new BaseModelData(properties)); properties.put("text", "MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF"); properties.put("code", "MK"); countries.add(new BaseModelData(properties)); properties.put("text", "MADAGASCAR"); properties.put("code", "MG"); countries.add(new BaseModelData(properties)); properties.put("text", "MALAWI"); properties.put("code", "MW"); countries.add(new BaseModelData(properties)); properties.put("text", "MALAYSIA"); properties.put("code", "MY"); countries.add(new BaseModelData(properties)); properties.put("text", "MALDIVES"); properties.put("code", "MV"); countries.add(new BaseModelData(properties)); properties.put("text", "MALI"); properties.put("code", "ML"); countries.add(new BaseModelData(properties)); properties.put("text", "MALTA"); properties.put("code", "MT"); countries.add(new BaseModelData(properties)); properties.put("text", "MARSHALL ISLANDS"); properties.put("code", "MH"); countries.add(new BaseModelData(properties)); properties.put("text", "MARTINIQUE"); properties.put("code", "MQ"); countries.add(new BaseModelData(properties)); properties.put("text", "MAURITANIA"); properties.put("code", "MR"); countries.add(new BaseModelData(properties)); properties.put("text", "MAURITIUS"); properties.put("code", "MU"); countries.add(new BaseModelData(properties)); properties.put("text", "MAYOTTE"); properties.put("code", "YT"); countries.add(new BaseModelData(properties)); properties.put("text", "MEXICO"); properties.put("code", "MX"); countries.add(new BaseModelData(properties)); properties.put("text", "MICRONESIA, FEDERATED STATES OF"); properties.put("code", "FM"); countries.add(new BaseModelData(properties)); properties.put("text", "MOLDOVA, REPUBLIC OF"); properties.put("code", "MD"); countries.add(new BaseModelData(properties)); properties.put("text", "MONACO"); properties.put("code", "MC"); countries.add(new BaseModelData(properties)); properties.put("text", "MONGOLIA"); properties.put("code", "MN"); countries.add(new BaseModelData(properties)); properties.put("text", "MONTENEGRO"); properties.put("code", "ME"); countries.add(new BaseModelData(properties)); properties.put("text", "MONTSERRAT"); properties.put("code", "MS"); countries.add(new BaseModelData(properties)); properties.put("text", "MOROCCO"); properties.put("code", "MA"); countries.add(new BaseModelData(properties)); properties.put("text", "MOZAMBIQUE"); properties.put("code", "MZ"); countries.add(new BaseModelData(properties)); properties.put("text", "MYANMAR"); properties.put("code", "MM"); countries.add(new BaseModelData(properties)); properties.put("text", "NAMIBIA"); properties.put("code", "NA"); countries.add(new BaseModelData(properties)); properties.put("text", "NAURU"); properties.put("code", "NR"); countries.add(new BaseModelData(properties)); properties.put("text", "NEPAL"); properties.put("code", "NP"); countries.add(new BaseModelData(properties)); properties.put("text", "NETHERLANDS"); properties.put("code", "NL"); countries.add(new BaseModelData(properties)); properties.put("text", "NEW CALEDONIA"); properties.put("code", "NC"); countries.add(new BaseModelData(properties)); properties.put("text", "NEW ZEALAND"); properties.put("code", "NZ"); countries.add(new BaseModelData(properties)); properties.put("text", "NICARAGUA"); properties.put("code", "NI"); countries.add(new BaseModelData(properties)); properties.put("text", "NIGER"); properties.put("code", "NE"); countries.add(new BaseModelData(properties)); properties.put("text", "NIGERIA"); properties.put("code", "NG"); countries.add(new BaseModelData(properties)); properties.put("text", "NIUE"); properties.put("code", "NU"); countries.add(new BaseModelData(properties)); properties.put("text", "NORFOLK ISLAND"); properties.put("code", "NF"); countries.add(new BaseModelData(properties)); properties.put("text", "NORTHERN MARIANA ISLANDS"); properties.put("code", "MP"); countries.add(new BaseModelData(properties)); properties.put("text", "NORWAY"); properties.put("code", "NO"); countries.add(new BaseModelData(properties)); properties.put("text", "OMAN"); properties.put("code", "OM"); countries.add(new BaseModelData(properties)); properties.put("text", "PAKISTAN"); properties.put("code", "PK"); countries.add(new BaseModelData(properties)); properties.put("text", "PALAU"); properties.put("code", "PW"); countries.add(new BaseModelData(properties)); properties.put("text", "PALESTINIAN TERRITORY, OCCUPIED"); properties.put("code", "PS"); countries.add(new BaseModelData(properties)); properties.put("text", "PANAMA"); properties.put("code", "PA"); countries.add(new BaseModelData(properties)); properties.put("text", "PAPUA NEW GUINEA"); properties.put("code", "PG"); countries.add(new BaseModelData(properties)); properties.put("text", "PARAGUAY"); properties.put("code", "PY"); countries.add(new BaseModelData(properties)); properties.put("text", "PERU"); properties.put("code", "PE"); countries.add(new BaseModelData(properties)); properties.put("text", "PHILIPPINES"); properties.put("code", "PH"); countries.add(new BaseModelData(properties)); properties.put("text", "PITCAIRN"); properties.put("code", "PN"); countries.add(new BaseModelData(properties)); properties.put("text", "POLAND"); properties.put("code", "PL"); countries.add(new BaseModelData(properties)); properties.put("text", "PORTUGAL"); properties.put("code", "PT"); countries.add(new BaseModelData(properties)); properties.put("text", "PUERTO RICO"); properties.put("code", "PR"); countries.add(new BaseModelData(properties)); properties.put("text", "QATAR"); properties.put("code", "QA"); countries.add(new BaseModelData(properties)); properties.put("text", "R\u00c9UNION"); properties.put("code", "RE"); countries.add(new BaseModelData(properties)); properties.put("text", "ROMANIA"); properties.put("code", "RO"); countries.add(new BaseModelData(properties)); properties.put("text", "RUSSIAN FEDERATION"); properties.put("code", "RU"); countries.add(new BaseModelData(properties)); properties.put("text", "RWANDA"); properties.put("code", "RW"); countries.add(new BaseModelData(properties)); properties.put("text", "SAINT BARTH\u00c9LEMY"); properties.put("code", "BL"); countries.add(new BaseModelData(properties)); properties.put("text", "SAINT HELENA, ASCENSION AND TRISTAN DA CUNHA"); properties.put("code", "SH"); countries.add(new BaseModelData(properties)); properties.put("text", "SAINT KITTS AND NEVIS"); properties.put("code", "KN"); countries.add(new BaseModelData(properties)); properties.put("text", "SAINT LUCIA"); properties.put("code", "LC"); countries.add(new BaseModelData(properties)); properties.put("text", "SAINT MARTIN (FRENCH PART)"); properties.put("code", "MF"); countries.add(new BaseModelData(properties)); properties.put("text", "SAINT PIERRE AND MIQUELON"); properties.put("code", "PM"); countries.add(new BaseModelData(properties)); properties.put("text", "SAINT VINCENT AND THE GRENADINES"); properties.put("code", "VC"); countries.add(new BaseModelData(properties)); properties.put("text", "SAMOA"); properties.put("code", "WS"); countries.add(new BaseModelData(properties)); properties.put("text", "SAN MARINO"); properties.put("code", "SM"); countries.add(new BaseModelData(properties)); properties.put("text", "SAO TOME AND PRINCIPE"); properties.put("code", "ST"); countries.add(new BaseModelData(properties)); properties.put("text", "SAUDI ARABIA"); properties.put("code", "SA"); countries.add(new BaseModelData(properties)); properties.put("text", "SENEGAL"); properties.put("code", "SN"); countries.add(new BaseModelData(properties)); properties.put("text", "SERBIA"); properties.put("code", "RS"); countries.add(new BaseModelData(properties)); properties.put("text", "SEYCHELLES"); properties.put("code", "SC"); countries.add(new BaseModelData(properties)); properties.put("text", "SIERRA LEONE"); properties.put("code", "SL"); countries.add(new BaseModelData(properties)); properties.put("text", "SINGAPORE"); properties.put("code", "SG"); countries.add(new BaseModelData(properties)); properties.put("text", "SINT MAARTEN (DUTCH PART)"); properties.put("code", "SX"); countries.add(new BaseModelData(properties)); properties.put("text", "SLOVAKIA"); properties.put("code", "SK"); countries.add(new BaseModelData(properties)); properties.put("text", "SLOVENIA"); properties.put("code", "SI"); countries.add(new BaseModelData(properties)); properties.put("text", "SOLOMON ISLANDS"); properties.put("code", "SB"); countries.add(new BaseModelData(properties)); properties.put("text", "SOMALIA"); properties.put("code", "SO"); countries.add(new BaseModelData(properties)); properties.put("text", "SOUTH AFRICA"); properties.put("code", "ZA"); countries.add(new BaseModelData(properties)); properties.put("text", "SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS"); properties.put("code", "GS"); countries.add(new BaseModelData(properties)); properties.put("text", "SPAIN"); properties.put("code", "ES"); countries.add(new BaseModelData(properties)); properties.put("text", "SRI LANKA"); properties.put("code", "LK"); countries.add(new BaseModelData(properties)); properties.put("text", "SUDAN"); properties.put("code", "SD"); countries.add(new BaseModelData(properties)); properties.put("text", "SURINAME"); properties.put("code", "SR"); countries.add(new BaseModelData(properties)); properties.put("text", "SVALBARD AND JAN MAYEN"); properties.put("code", "SJ"); countries.add(new BaseModelData(properties)); properties.put("text", "SWAZILAND"); properties.put("code", "SZ"); countries.add(new BaseModelData(properties)); properties.put("text", "SWEDEN"); properties.put("code", "SE"); countries.add(new BaseModelData(properties)); properties.put("text", "SWITZERLAND"); properties.put("code", "CH"); countries.add(new BaseModelData(properties)); properties.put("text", "SYRIAN ARAB REPUBLIC"); properties.put("code", "SY"); countries.add(new BaseModelData(properties)); properties.put("text", "TAIWAN, PROVINCE OF CHINA"); properties.put("code", "TW"); countries.add(new BaseModelData(properties)); properties.put("text", "TAJIKISTAN"); properties.put("code", "TJ"); countries.add(new BaseModelData(properties)); properties.put("text", "TANZANIA, UNITED REPUBLIC OF"); properties.put("code", "TZ"); countries.add(new BaseModelData(properties)); properties.put("text", "THAILAND"); properties.put("code", "TH"); countries.add(new BaseModelData(properties)); properties.put("text", "TIMOR-LESTE"); properties.put("code", "TL"); countries.add(new BaseModelData(properties)); properties.put("text", "TOGO"); properties.put("code", "TG"); countries.add(new BaseModelData(properties)); properties.put("text", "TOKELAU"); properties.put("code", "TK"); countries.add(new BaseModelData(properties)); properties.put("text", "TONGA"); properties.put("code", "TO"); countries.add(new BaseModelData(properties)); properties.put("text", "TRINIDAD AND TOBAGO"); properties.put("code", "TT"); countries.add(new BaseModelData(properties)); properties.put("text", "TUNISIA"); properties.put("code", "TN"); countries.add(new BaseModelData(properties)); properties.put("text", "TURKEY"); properties.put("code", "TR"); countries.add(new BaseModelData(properties)); properties.put("text", "TURKMENISTAN"); properties.put("code", "TM"); countries.add(new BaseModelData(properties)); properties.put("text", "TURKS AND CAICOS ISLANDS"); properties.put("code", "TC"); countries.add(new BaseModelData(properties)); properties.put("text", "TUVALU"); properties.put("code", "TV"); countries.add(new BaseModelData(properties)); properties.put("text", "UGANDA"); properties.put("code", "UG"); countries.add(new BaseModelData(properties)); properties.put("text", "UKRAINE"); properties.put("code", "UA"); countries.add(new BaseModelData(properties)); properties.put("text", "UNITED ARAB EMIRATES"); properties.put("code", "AE"); countries.add(new BaseModelData(properties)); properties.put("text", "UNITED KINGDOM"); properties.put("code", "GB"); countries.add(new BaseModelData(properties)); properties.put("text", "UNITED STATES"); properties.put("code", "US"); countries.add(new BaseModelData(properties)); properties.put("text", "UNITED STATES MINOR OUTLYING ISLANDS"); properties.put("code", "UM"); countries.add(new BaseModelData(properties)); properties.put("text", "URUGUAY"); properties.put("code", "UY"); countries.add(new BaseModelData(properties)); properties.put("text", "UZBEKISTAN"); properties.put("code", "UZ"); countries.add(new BaseModelData(properties)); properties.put("text", "VANUATU"); properties.put("code", "VU"); countries.add(new BaseModelData(properties)); properties.put("text", "VENEZUELA, BOLIVARIAN REPUBLIC OF"); properties.put("code", "VE"); countries.add(new BaseModelData(properties)); properties.put("text", "VIET NAM"); properties.put("code", "VN"); countries.add(new BaseModelData(properties)); properties.put("text", "VIRGIN ISLANDS, BRITISH"); properties.put("code", "VG"); countries.add(new BaseModelData(properties)); properties.put("text", "VIRGIN ISLANDS, U.S."); properties.put("code", "VI"); countries.add(new BaseModelData(properties)); properties.put("text", "WALLIS AND FUTUNA"); properties.put("code", "WF"); countries.add(new BaseModelData(properties)); properties.put("text", "WESTERN SAHARA"); properties.put("code", "EH"); countries.add(new BaseModelData(properties)); properties.put("text", "YEMEN"); properties.put("code", "YE"); countries.add(new BaseModelData(properties)); properties.put("text", "ZAMBIA"); properties.put("code", "ZM"); countries.add(new BaseModelData(properties)); properties.put("text", "ZIMBABWE"); properties.put("code", "ZW"); countries.add(new BaseModelData(properties)); return countries; } }
[ "yuzhongxing88@gmail.com" ]
yuzhongxing88@gmail.com