code stringlengths 3 1.18M | language stringclasses 1
value |
|---|---|
package com.ecomdev.openvpn.api;
import android.os.Parcel;
import android.os.Parcelable;
public class APIVpnProfile implements Parcelable {
public final String mUUID;
public final String mName;
public final boolean mUserEditable;
public APIVpnProfile(Parcel in) {
mUUID = in.readString();
mName ... | Java |
package com.ecomdev.openvpn.api;
import java.io.IOException;
import java.io.StringReader;
import java.lang.ref.WeakReference;
import java.util.LinkedList;
import java.util.List;
import android.annotation.TargetApi;
import android.app.Service;
import android.content.ComponentName;
import android.content.Con... | Java |
package com.ecomdev.openvpn;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.content.pm.ApplicationInfo;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.os.Build;
import android.preference.Preference... | Java |
package com.ecomdev.openvpn;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import com.ecomdev.openvpn.core.ProfileManager;
public class OnBootReceiver extends BroadcastReceiver {
// Debug: am broadcast -a android.intent.action.BOOT_COMPLETED
@Override
pu... | Java |
package com.ecomdev.openvpn;
import android.app.AlarmManager;
import android.app.PendingIntent;
import android.app.Service;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Binder;
import android.os.IBinder;
import com.ecomdev.openvpn.fragments.... | Java |
package com.ecomdev.openvpn.views;
import android.content.Context;
import android.preference.DialogPreference;
import android.util.AttributeSet;
import android.util.Pair;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.EditText;
import android.widget.Spinner;
import android.widget.T... | Java |
package com.ecomdev.openvpn.views;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.drawable.Drawable;
import android.util.AttributeSet;
import android.util.TypedValue;
import android.view.ViewConfiguration;
im... | Java |
package com.ecomdev.openvpn.views;
import com.ecomdev.openvpn.R;
import com.ecomdev.openvpn.VpnProfile;
import com.ecomdev.openvpn.activities.FileSelect;
import com.ecomdev.openvpn.core.VpnStatus;
import com.ecomdev.openvpn.core.X509Utils;
import android.content.Context;
import android.content.Intent;
import android.c... | Java |
package com.ecomdev.openvpn;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import android.content.ContentProvider;
import android.content.ContentProvider.PipeDataWriter;
import android... | Java |
package com.ecomdev.openvpn.core;
import android.Manifest.permission;
import android.annotation.TargetApi;
import android.app.Notification;
import android.app.NotificationManager;
import android.app.PendingIntent;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
impor... | Java |
package com.ecomdev.openvpn.core;
import java.security.InvalidKeyException;
public class NativeUtils {
public static native byte[] rsasign(byte[] input,int pkey) throws InvalidKeyException;
static native void jniclose(int fdint);
static {
System.loadLibrary("stlport_shared");
System.loadLibrary("opvpnut... | Java |
package com.ecomdev.openvpn.core;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import android.net.NetworkInfo.State;
import android.pref... | Java |
package com.ecomdev.openvpn.core;
import java.util.Locale;
class CIDRIP {
String mIp;
int len;
public CIDRIP(String ip, String mask) {
mIp = ip;
long netmask = getInt(mask);
// Add 33. bit to ensure the loop terminates
netmask += 1l << 32;
int lenZeros = 0;
... | Java |
package com.ecomdev.openvpn.core;
import android.util.Log;
import com.ecomdev.openvpn.R;
import com.ecomdev.openvpn.VpnProfile;
import com.ecomdev.openvpn.core.VpnStatus.ConnectionStatus;
import com.ecomdev.openvpn.core.VpnStatus.LogItem;
import java.io.*;
import java.text.SimpleDateFormat;
import java.util... | Java |
package com.ecomdev.openvpn.core;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import android.content.Context;
import android.content.Intent;
import android.os.Build;
import com.ecomdev.openvpn.R;
import com.ecomdev.openvpn.VpnProfile;
public class VPN... | Java |
package com.ecomdev.openvpn.core;
import android.content.Context;
import android.text.TextUtils;
import com.ecomdev.openvpn.R;
import com.ecomdev.openvpn.VpnProfile;
import org.spongycastle.util.io.pem.PemObject;
import org.spongycastle.util.io.pem.PemReader;
import javax.security.auth.x500.X500Principal;
import ja... | Java |
package com.ecomdev.openvpn.core;
import android.annotation.TargetApi;
import android.app.Activity;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.RestrictionEntry;
import android.os.Build;
import android.os.Bundle;
import java.util.Arra... | Java |
package com.ecomdev.openvpn.core;
import android.content.Context;
import android.content.SharedPreferences;
import android.net.LocalServerSocket;
import android.net.LocalSocket;
import android.net.LocalSocketAddress;
import android.os.ParcelFileDescriptor;
import android.preference.PreferenceManager;
import a... | Java |
package com.ecomdev.openvpn.core;
public interface OpenVPNManagement {
enum pauseReason {
noNetwork,
userPause,
screenOff
}
int mBytecountInterval =2;
void reconnect();
void pause(pauseReason reason);
void resume();
boolean stopVPN();
}
| Java |
package com.ecomdev.openvpn.core;/*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will Google be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial appl... | Java |
package com.ecomdev.openvpn.core;
import java.net.InetSocketAddress;
import java.net.MalformedURLException;
import java.net.Proxy;
import java.net.ProxySelector;
import java.net.SocketAddress;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.List;
import com.ecomdev.openvpn.R;
import com.ecom... | Java |
package com.ecomdev.openvpn.core;
import android.annotation.SuppressLint;
import android.content.Context;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager;
import android.content.pm.PackageManager.NameNotFoundException;
import android.content.pm.Signature;
import android.os.Build;
import... | Java |
package com.ecomdev.openvpn.core;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.io.StreamCorruptedException;
import java.util.Collection;
import java.util.H... | Java |
package com.ecomdev.openvpn.core;
import android.os.Build;
import android.text.TextUtils;
import java.math.BigInteger;
import java.net.Inet6Address;
import java.util.*;
public class NetworkSpace {
static class ipAddress implements Comparable<ipAddress> {
private BigInteger netAddress;
public in... | Java |
package com.ecomdev.openvpn.core;
import android.app.Application;
/**
* Created by arne on 28.12.13.
*/
public class ICSOpenVPNApplication extends Application {
@Override
public void onCreate() {
super.onCreate();
PRNGFixes.apply();
}
}
| Java |
package com.ecomdev.openvpn.core;
import com.ecomdev.openvpn.VpnProfile;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.Reader;
import java.util.Collections;
import java.util.HashMap;
import java.util.Locale;
import java.util.Vector;
//! Openvpn Config FIle Parser, probably not 100% accura... | Java |
package com.ecomdev.openvpn.fragments;
import java.io.File;
import java.util.ArrayList;
import android.app.Fragment;
import android.content.Context;
import android.content.Intent;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.net.Uri;
import andr... | Java |
package com.ecomdev.openvpn.fragments;
import android.os.Bundle;
import android.preference.PreferenceFragment;
import com.ecomdev.openvpn.R;
import com.ecomdev.openvpn.VpnProfile;
import com.ecomdev.openvpn.core.ProfileManager;
public abstract class OpenVpnPreferencesFragment extends PreferenceFragment {
... | Java |
package com.ecomdev.openvpn.fragments;
import android.app.Fragment;
import android.app.PendingIntent;
import android.content.*;
import android.content.pm.PackageInfo;
import android.content.pm.PackageManager.NameNotFoundException;
import android.os.Bundle;
import android.os.IBinder;
import android.os.RemoteException;
... | Java |
package com.ecomdev.openvpn.fragments;
import java.io.File;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Locale;
import java.util.TreeMap;
import android.app.AlertDialog;
import android.app.ListFragment;
import android.os.Bundle;
import android.view.LayoutInflater;
imp... | Java |
package com.ecomdev.openvpn.fragments;
import android.app.Activity;
import android.content.Intent;
import android.os.Build;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.EditTextPreference;
import android.preference.ListPreference;
import android.preference.Preferenc... | Java |
package com.ecomdev.openvpn.fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import android.widget.EditText;
import com... | Java |
package com.ecomdev.openvpn.fragments;
import android.app.Fragment;
import android.os.Bundle;
import android.text.Html;
import android.text.method.LinkMovementMethod;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;
import com.ecomdev.openvpn.... | Java |
package com.ecomdev.openvpn.fragments;
import java.io.File;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.pm.ApplicationInfo;
import android.conten... | Java |
package com.ecomdev.openvpn.fragments;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.EditTextPreference;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import com.ecomdev.openvpn.R;
public class Settings_Routin... | Java |
package com.ecomdev.openvpn.fragments;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.app.*;
import android.content.*;
import android.database.DataSetObserver;
import android.graphics.drawable.Drawable;
import android.os.Bund... | Java |
package com.ecomdev.openvpn.fragments;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.EditTextPreference;
import android.preference.ListPreference;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import com.ecomde... | Java |
package com.ecomdev.openvpn.fragments;
import android.app.Fragment;
import android.content.Intent;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.Menu;
import android.view.MenuInflater;
import android.view.MenuItem;
import android.view.View;
import android.view.ViewGroup;
import andr... | Java |
package com.ecomdev.openvpn.fragments;
import android.os.Bundle;
import android.preference.CheckBoxPreference;
import android.preference.EditTextPreference;
import android.preference.Preference;
import android.preference.Preference.OnPreferenceChangeListener;
import android.preference.PreferenceManager;
import android.... | Java |
package com.ecomdev.openvpn.fragments;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.Intent;
import android.net.Uri;
import android.os.Build;
import android.util.Base64;
import android.webkit.MimeTypeMap;
import junit.framework.Assert;
import java.io.*;
import java.util.T... | Java |
package com.ecomdev.openvpn.fragments;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.app.Fragment;
import android.content.ActivityNotFoundException;
import android.content.Intent;
import android.os.Build;
import ... | Java |
package com.ecomdev.openvpn.fragments;
import android.annotation.TargetApi;
import android.app.Activity;
import android.app.AlertDialog;
import android.app.ListFragment;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.graphics.drawable.Drawable;
imp... | Java |
package com.ecomdev.openvpn;
/**
* Created by ymka on 09.08.14.
*/
public class Constants {
public static final int sUPDATE_DEMO_TIME_RECEIVER_NUM = 24442;
public static final String sMAIN_SHARED_PREFERENCE = "mainSharedPreference";
public static final String sPREF_IS_DEMO = "isDemo";
public static ... | Java |
package com.ecomdev.openvpn;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
/**
* Created by ymka on 03.08.14.
*/
public class UpdateDemoTimeReceiver extends BroadcastReceiver {
@Override
public void onReceive(Context context... | Java |
package com.ecomdev.openvpn;
import java.io.IOException;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.ActivityNotFoundException;
import android.content.DialogInterface;
import android.content.DialogInterface.OnClickListener;
import android.content.Intent;
import android.content.... | Java |
package jtacck.labmedicine;
import com.google.android.maps.Overlay;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.RectF;
import com.google.android.maps.GeoPoint;
import com... | Java |
package jtacck.labmedicine;
import android.app.ProgressDialog;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.view.Window;
import android.widget.T... | Java |
package jtacck.labmedicine;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.InetAddress;
import java.net.Socket;
import java.net.SocketException;
import java.net.UnknownHostException;
import java.util.concurrent.*;
import jvm.jtacck.db.record... | Java |
package jtacck.labmedicine;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ArrayAdapter;
import android.widget.CheckBox;
import android.widget.ListView;
import android.widget.TextView;
/**
* Handles the scre... | Java |
package jtacck.labmedicine;
import java.util.ArrayList;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import jvm.jtacck.db.records.ClientSite;
import jvm.jtacck.db.records.Hospital;
import jvm.jtacck.db.records.ShippingInformation;
public class RouteData {
private Map<H... | Java |
package jtacck.labmedicine;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;
import jvm.jtacck.db.records.CheckListPair;
import jvm.jtacck.db.recor... | Java |
package jtacck.labmedicine;
import java.io.Serializable;
import java.util.LinkedList;
import java.util.List;
import jtacck.labmedicine.Cache.ChecklistState;
import jvm.jtacck.db.records.ClientSite;
import jvm.jtacck.db.records.ShippingInformation;
import android.app.Activity;
import android.content.Intent;
... | Java |
package jtacck.labmedicine;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import jvm.jtacck.db.records.ClientSite;
import jvm.jtacck.db.records.Hospital;
import jvm.jtacck.db.records.ShippingIn... | Java |
package jtacck.labmedicine;
import java.util.LinkedHashMap;
import java.util.List;
import jvm.jtacck.db.records.ClientSite;
import jvm.jtacck.db.records.Hospital;
import jvm.jtacck.db.records.ShippingInformation;
import jvm.jtacck.db.records.User;
import jvm.jtacck.serials.Route;
import android.app.Activity... | Java |
package jtacck.labmedicine;
import android.os.Bundle;
import android.preference.PreferenceActivity;
/**
* @author Jesse Jeng
*
* Activity that lets the user configure various settings for the
* application
*
*/
public class PreferencesFromXml extends PreferenceActivity {
@Override
pro... | Java |
package jtacck.labmedicine;
import java.util.List;
import android.app.Dialog;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.graphics.drawable.Drawable;
import android.location.Geocoder;
import android.location.Location;
import android.lo... | Java |
package jtacck.labmedicine;
import java.util.List;
import jtacck.labmedicine.Cache.ChecklistState;
import jvm.jtacck.db.records.ClientSite;
import jvm.jtacck.db.records.Hospital;
import jvm.jtacck.db.records.Item;
import jvm.jtacck.db.records.ShippingInformation;
import jvm.jtacck.db.records.Specimen;
impor... | Java |
package jtacck.labmedicine;
import java.util.ArrayList;
import android.app.AlertDialog;
import android.content.Context;
import android.graphics.drawable.Drawable;
import com.google.android.maps.ItemizedOverlay;
import com.google.android.maps.OverlayItem;
public class GoogleMapOverlay extends ItemizedOver... | Java |
package jtacck.labmedicine;
import java.util.Calendar;
import java.util.Iterator;
import jvm.jtacck.db.records.CheckListPair;
import jvm.jtacck.db.records.ClientSite;
import jvm.jtacck.db.records.ShippingInformation;
import jvm.jtacck.serials.Route;
import jvm.jtacck.serials.ShippingList;
import android.app.Activity;... | Java |
package jtacck.labmedicine;
import jvm.jtacck.serials.LoginInfo;
import android.app.Activity;
import android.app.ProgressDialog;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.DialogInterface.OnCancelListener;
import android.conten... | Java |
package jtacck.labmedicine;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Paint.Style;
import android.graphics.Point;
import android.location.Location;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
import com.google.android.maps.Ove... | Java |
package jtacck.labmedicine;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Point;
import android.graphics.Paint.Style;
import android.location.Location;
import com.google.android.maps.GeoPoint;
import com.google.android.maps.MapView;
i... | Java |
package jtacck.labmedicine;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.widget.Toast;
/**
* Used to consolidate methods that are used by several activities rather than
* having repeated code in methods.
... | Java |
package jvm.jtacck.serials;
import java.io.Serializable;
/**
* @author Jesse Jeng
*
* The LoginInfo class wraps two values of the type String in an object.
*
* An object of type LoginInfo contains two fields whose types are String.
*
*/
public class LoginInfo implements Serializable {
... | Java |
package jvm.jtacck.serials;
import java.io.Serializable;
/**
* @author Jesse Jeng
*
* The GPS class wraps two values of the primitive type double in an
* object.
*
* An object of type GPS contains two fields whose types are double.
*
*/
public class GPS implements Serializable {
... | Java |
package jvm.jtacck.serials;
import java.io.Serializable;
import java.util.List;
import jvm.jtacck.db.records.ShippingInformation;
/**
* @author Jesse Jeng
*
* The ShippingList class wraps a value of the type
* List<ShippingInformation> in an object.
*
* An object of type ShippingList conta... | Java |
package jvm.jtacck.serials;
import java.io.Serializable;
/**
* @author Jesse Jeng
*
* The Barcode class wraps a value of the primitive type String in an
* object.
*
* An object of type Barcode contains a single field whose type is
* String.
*
*/
public class Barcode impleme... | Java |
package jvm.jtacck.serials;
import java.io.Serializable;
import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import jvm.jtacck.db.records.ClientSite;
import jvm.jtacck.db.records.Hospital;
/**
* @author Jesse Jeng
*
* The Route class wraps a value of the type List<ClientSite>... | Java |
package jvm.jtacck;
import static jvm.jtacck.Util.logger;
import java.io.EOFException;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.SocketException;
import java.net.SocketTimeoutException;
import ... | Java |
package jvm.jtacck.logging;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
/**
* An OutputStream that writes contents to a Logger upon each call to flush()
*
* Credit: Nick Stephen
* http://blogs.oracle.com/nickstephen/entry/... | Java |
package jvm.jtacck.logging;
import java.io.InvalidObjectException;
import java.io.ObjectStreamException;
import java.util.logging.Level;
/**
* Class defining 2 new Logging levels, one for STDOUT, one for STDERR, used
* when multiplexing STDOUT and STDERR into the same rolling log file via the
* Java Logging APIs.
... | Java |
package jvm.jtacck;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import j... | Java |
package jvm.jtacck.db;
import java.util.Arrays;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.sql.SQLException;
import jvm.jtacck.AndroidServer;
import jvm.jtacck.db.records.*;
import jvm.jtacck.serials.Route;
... | Java |
/**
*
*/
package jvm.jtacck.db;
import java.sql.SQLException;
import java.util.Date;
import java.util.List;
import jvm.jtacck.db.records.*;
/**
* @author Chris Gamble
*
* A DatabaseHandler is an Interface to be used in the Jtacck Lab
* Transport System. It's functionality is to... | Java |
package jvm.jtacck.db.records;
/**
*
* @author Chris Gamble
*
* Represents a type of user of the system. each user belongs to one of
* these types, and depending on the type of user, they are restricted
* to what they can access.
*
*/
public class UserType extends Record {... | Java |
package jvm.jtacck.db.records;
/**
* @author Chris Gamble
*
* Represents a User record in the database. A user has a username, a
* password, a first and last name, as well as the client_site he/she is
* associated with and the type of user they are.
*/
public class User extends ... | Java |
package jvm.jtacck.db.records;
import java.util.Collections;
import java.util.List;
/**
*
* @author Chris Gamble
*
* Represents a Courier. A Courier is a specific type of user, who has
* additional fields to have. They are associated by a username, they
* have a list that co... | Java |
package jvm.jtacck.db.records;
/**
*
* @author Chris Gamble
*
* Represents a Status a Specimen can have. A Status consists of a
* unique id, a name, and a description of the status.
*
* There are currently 3 valid statuses.
* Status(1, 'Waiting', 'The shipme... | Java |
package jvm.jtacck.db.records;
/**
*
* @author Chris Gamble
*
* Represents a relational table of a database. Shipping information
* relates a Specimen to other records. the username who started the
* tracking process (shipped), the client_site that it is destined for,
* ... | Java |
package jvm.jtacck.db.records;
/**
*
* @author Chris Gamble
*
* Represents an Item. An Item is the lowest form of a Specimen.
* Physically it contains a vial containing a sample of some sort, has a
* name of the sample, and the color of a cap. This representation has a
* ... | Java |
package jvm.jtacck.db.records;
import java.util.Collection;
import java.util.Collections;
import java.util.LinkedList;
/**
*
* @author Chris Gamble
*
* Represents a Specimen of the tracking system. A specimen is comprised
* of a Collection of Items, as well as a unique barcode, a des... | Java |
package jvm.jtacck.db.records;
/**
* @author Chris Gamble
*
* Represents a Hospital record in the database. A hospital has an ID
* number, a name, and an address.
*/
public class Hospital extends Record {
private static final long serialVersionUID = -1878531611795940701L;
... | Java |
package jvm.jtacck.db.records;
import java.io.Serializable;
import java.util.List;
/**
* TODO
* @author Chris Gamble
*
*/
public class CheckListPair extends Record implements Serializable {
private static final long serialVersionUID = 1653895091733105977L;
public final List<String> startingList;
publ... | Java |
package jvm.jtacck.db.records;
import java.util.Collections;
import java.util.List;
/**
*
* @author Chris Gamble
*
* Represents a Client_Site in our database. A Client Site is a sub
* section of a hospital from where specimens can be picked up for
* shipping. Client sites ha... | Java |
package jvm.jtacck.db.records;
import java.io.Serializable;
/**
* @author Chris Gamble
*
* Generic type to indicate that the file is a record of the database.
* This is a placeholder for any type of record that may be used in the
* Jtacck Lab Medicine System.
*
*/
public c... | Java |
package jvm.jtacck.db;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collecti... | Java |
package jvm.jtacck.test.db;
/*
* Copy and Paste of this code from http://pastebin.com/f10584951
*
* License below states free use as long as license is kept with it.
*/
/*
* Added additional null checks when closing the ResultSet and Statements.
*
* Thanks to pihug12 and Grzegorz Oledzki at stackoverfl... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
/*
Copyright 2011 Google Inc. 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.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed... | Java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.