text
stringlengths
14
410k
label
int32
0
9
@Override public int hashCode() { int result = key != null ? key.hashCode() : 0; result = 31 * result + (value != null ? value.hashCode() : 0); return result; }
2
public void visit_istore(final Instruction inst) { stackHeight -= 1; if (stackHeight < minStackHeight) { minStackHeight = stackHeight; } }
1
@Override public void handle(KeyEvent keyEvent) { KeyCode code = keyEvent.getCode(); if (keyEvent.isShortcutDown()) { if (code.getName().equals("P")) { BoardPage bp = new BoardPage("New page", 4, 4); pagesPane.getTabs().add(bp); } else if (cod...
5
public void run() { String[] args = new String[2]; if (main.list.getSelectedValues().size() > 0) { if (main.list.getPictures().length != main.list.getSelectedValues().size()) { int response = JOptionPane.showConfirmDialog(main.list, main.mes.getString("Generator.23"), main.me...
7
@Override public void deserialize(Buffer buf) { livingUID = buf.readInt(); if (livingUID < 0) throw new RuntimeException("Forbidden value on livingUID = " + livingUID + ", it doesn't respect the following condition : livingUID < 0"); livingPosition = buf.readUByte(); if (...
4
@Override public SymbolInfo Execute(RuntimeContext cont) throws Exception { SymbolInfo m_cond = cond.Evaluate(cont); if ((m_cond == null) || (m_cond.Type != TypeInfo.TYPE_BOOL)) { return null; } SymbolInfo ret = null; if (m_cond.BoolValue == true) { fo...
9
public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output,Reporter reporter) throws IOException { String line = value.toString(); String[] words = line.split(","); int flag = 0, i = 0; for(i=0;i<MAX_RULE && flag==0;i++) { ...
8
public boolean processEvent(Sim_event ev){ int src_id = -1; Message msg = null; Message respMsg = null; if (responder == null){ System.out.println("No responder to deal with auction messages!"); return false; } switch ( ev.get_tag()...
9
void createResidueHydrogenBond(int indexAminoGroup, int indexCarbonylGroup, BitSet bsA, BitSet bsB) { short order; int aminoBackboneHbondOffset = indexAminoGroup - indexCarbonylGroup; if (debugHbonds) Logger.debug("aminoBackboneHbondOffset=" + ...
7
private void add_to_list(String ch) { for (int i = 0; i < mylist.size(); i++) { if (ch.equals(((data) mylist.get(i)).getChar())) { ((data) mylist.get(i)).increment(); return; } } mylist.add(new data(ch)); }
2
public String getLocalTime(){ try { in=new BufferedReader(new FileReader(new File("hosts"))); String line; while((line=in.readLine())!=null){ if(line.contains(TIMEMARKLOCAL)){ localtime=line.substring(TIMEMARKLOCAL.length()+1); localtime=localtime.substring(0,localtime.indexOf(' ')); } }...
4
@Override public boolean equals(Object obj) { if (obj == null) { return false; } if (getClass() != obj.getClass()) { return false; } final Venda other = (Venda) obj; if (this.codigo != other.codigo) { return false; } ...
7
private byte filterPLO(int i, int i2, int i3) { int res = 0; if ( i > 0 && i2 > 0 && i2 < biHeight - 1) { int l = getIntVal(i - 1, i2 + 1, i3); int d = getIntVal(i, i2 - 1, i3); int ld = getIntVal(i - 1, i2, i3); if (ld >= l && ld >= d) { if (l > d) { res = d; } else { res = l; }...
9
private List<Class<?>> getAllClassesFromClass(Class<?> cl) { List<Class<?>> list = new ArrayList<Class<?>>(); list.add(cl); if(cl.getSuperclass() != null && cl.getSuperclass().getPackage().getName().startsWith("com.paynova.api.client")) { list.addAll(getAllClassesFromClass(cl.getSuperclass())); } retu...
6
public static void main(String[] args) { // TODO code application logic here final JFrame frame = new JFrame("ImgPanel Test Frame"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); SetupDialog setupDialog = new SetupDialog(frame); System.out.println("setupDialog filename "...
8
public boolean spawnPet(int itemId, boolean deleteItem) { Pets pets = Pets.forId(itemId); if (pets == null) { return false; } if (player.getPet() != null || player.getFamiliar() != null) { player.getPackets().sendGameMessage("You already have a follower."); return true; } if (!hasRequirements(pets...
9
public static RankType parseRanking(String rankInput) { rankInput = rankInput.toLowerCase(); switch (rankInput) { case "high": case "hi": case "h": return RankType.HI; case "medium": case "med": case "m": return RankType.MED; case "low": case "l": return RankType.LO; default: ...
8
public static void main(String[] args) { ObjectInputStream entrada=null; ObjectOutputStream salida=null; try{ System.out.println("Iniciando Servidor..."); ServerSocket elSocket= new ServerSocket(6666); System.out.println("Escuchando en el puerto 6666"); cliente=elSocket.accept(); System.out.printl...
6
public boolean updateGameBoxscore(Sport sport, String scheduleID) { if (scheduleID==null) return false; String request = null; switch(sport) { case NBA: case NHL: request = "http://api.sportsdatallc.org/" + sport.getName() + "-" + access_level + sport.getVersion() + "/games/" + scheduleID + "/boxscore.x...
6
public static void main(String args[]) { try { for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) { if ("Nimbus".equals(info.getName())) { javax.swing.UIManager.setLookAndFeel(info.getClassName()); ...
6
public void copyDirectory(File srcDir, File dstDir) throws IOException { if (srcDir.isDirectory()) { if (!dstDir.exists()) { dstDir.mkdir(); } String[] children = srcDir.list(); for (int i=0; i<children.length; i++) { ...
3
private FileUtils() { }
0
public Class<?> genericsType(Class<?> superClazz) { if (genericsTypes(superClazz).length == 0) { return Object.class; } return genericsTypes(superClazz)[0]; }
3
public static String[] allLowerCase(String... strings){ String[] tmp = new String[strings.length]; for(int idx=0;idx<strings.length;idx++){ if(strings[idx] != null){ tmp[idx] = strings[idx].toLowerCase(); } } return tmp; }
2
@Override protected Duration available() { Interval outer = new Interval(period.getEnd().minusWeeks(1), period.getEnd()); Duration aDay = new Duration(24 * hoursToMillis); int overtime = intervals.countDurationInterval(outer, aDay, max); Duration dayMax; if (overtime < 2) ...
2
private void CreateRoot() { DocumentBuilderFactory docFactory = DocumentBuilderFactory .newInstance(); DocumentBuilder docBuilder; File b = new File(XMLParser.path + "/root.xml"); if (b.exists()) return; try { docBuilder = docFactory.newDocumentBuilder(); // root elements Document doc = docBu...
4
public static void main(String args[]){ int cnt = 0; Random rand = new Random(); while(cnt < 25){ int a = rand.nextInt(56); if(cnt == 0){ randlist[cnt] = a; cnt++; } else{ if(isExist(a, cnt)){ randlist[cnt] = a; cnt++; } } } printContent(); }
3
public boolean isCurrent() { DockContainer dc = getDockContainer(); return dc != null && dc.getCurrentDockable() == mDockable; }
1
public static boolean isWhitespace(int c){ return c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r'; }
4
public boolean validCellRef(String cellRef) { boolean valid = false; String numbers = "0123456789"; String letters = "ABCDEFGH"; if(cellRef.length() == 2) { if(letters.indexOf(cellRef.substring(0, 1)) >= 0) { if(numbers.indexOf(cellRef.substring(1, 2)) >= 0) { valid = true; } } ...
6
public void append(Object parameter) { if(parameter == null) return; if(parameter instanceof byte[]) { byte byteArrarParameter[] = (byte[])parameter; for(int i = 0; i < byteArrarParameter.length; i++) { buffer[++dataSize] = byteArrarParameter[i]; size++; } } else if(parameter instance...
7
public synchronized static void updateTaskCompleted(String taskID, String recipientID) { XStream xstream = new XStream(new DomDriver()); Task[] allTasks = new Task[0]; try { File file = new File((String) Server.prop.get("taskFilePath")); allTasks = (Task[]) xstream.fromXML(file); for (Task task : all...
4
@Override public boolean onCommand(CommandSender sender, org.bukkit.command.Command cmd, String[] args) { Player p = (Player) sender; String pName = p.getName(); if(args.length != 0) return false; if(PlayerChat.plugin.getConfig().getBoolean("ModChat.Enabled", true)) { ModChat.putModChat(p, pName); retu...
2
public void RenderTile(int xp, int yp, Tile tile) { xp -= xOffset; yp -= yOffset; for (int y = 0; y < tile.sprite.SIZE; y++) { int ya = y + yp; for (int x = 0; x < tile.sprite.SIZE; x++) { int xa = x + xp; if (xa < -tile.sprite.SIZE || xa >= width || ya < 0 || ya >= height) break; if ...
7
public final boolean isNumericType() { switch (id) { case TypeIds.T_int: case TypeIds.T_float: case TypeIds.T_double: case TypeIds.T_short: case TypeIds.T_byte: case TypeIds.T_long: case TypeIds.T_char: return true; default: return false; } }
7
@Override public void caseAClassdecl(AClassdecl node) { for(int i=0;i<indent;i++) System.out.print(" "); indent++; System.out.println("(ClassDeclSimpe"); inAClassdecl(node); if(node.getClasstag() != null) { node.getClasstag().apply(this); } if(n...
8
public void setKing(Position position, boolean color){ board[position.getY()][position.getX()]= new King(color); }
0
public byte[] readCluster(int clusterNum) { byte[] bytesOfCluster = new byte[BPB_BytsPerSec]; int firstByteOfCluster = (clusterNum + firstDataSector - 2) * BPB_BytsPerSec; for (int i = firstByteOfCluster; i < firstByteOfCluster + BPB_BytsPerSec; i++) { bytesOfCluster[i-firstByteOfClu...
1
public void testConstructor_ObjectStringEx4() throws Throwable { try { new YearMonth("10:20:30.040+14:00"); fail(); } catch (IllegalArgumentException ex) { // expected } }
1
public MidiPlayer() { try { sequencer = MidiSystem.getSequencer(); sequencer.open(); sequencer.addMetaEventListener(this); } catch ( MidiUnavailableException ex) { sequencer = null; } }
1
public boolean equals(Object obj) { if (obj == this) { return true; } if (!(obj instanceof XYBoxAndWhiskerRenderer)) { return false; } if (!super.equals(obj)) { return false; } XYBoxAndWhiskerRenderer that = (XYBoxAndWhiskerRend...
7
public static void printTypes(Type[] types, String pre, String sep, String suf, boolean isDefinition) { if (pre.equals(" extends ") && Arrays.equals(types, new Type[] { Object.class })) { return; } if (types.length > 0) { System.out.print(pre); } for (int ...
6
public List<List<Rate>> getAllGameCombinationWithSure() { if (sourceGameList == null || sourceGameList.size() == 0) { return null; } Game gameSureGame = null; for (Game game : sourceGameList) { if (game.isSure()) { gameSureGame = game; System.out.println("breaking"); break; } System.o...
7
private void callSmoothZoom(double mouseX, double mouseY, int wheelRotation) { final double coordX = mouseX; final double coordY = mouseY; if (wheelRotation < 0) { if (timerDoneOut != 0) { timerDoneOut = 0; timer.cancel(); timer.purge()...
5
public ModelingEngine(Library library, Scheme scheme, SignalBundle signals, String diagrams, String logs) throws ModelingException { if(library == null) { throw new ModelingException(0x11); } else { this.library = library; } if(scheme == null) { throw ...
3
private String handleCreate(String cmd) { String[] arg = cmd.split("\\s+"); if (arg.length == 1) { return " usage: new [param | dim | array]\n"; } if (arg[1].startsWith("p")) { // create param if (arg.length < 3) { return " usage: new...
8
public int getScrollableUnitIncrement(Rectangle visibleRect, int orientation, int direction) { int hundredth = (orientation == SwingConstants.VERTICAL ? getParent().getHeight() : getParent().getWidth()) / 100; return (hundredth == 0 ? 1 : hundredth); }
2
public String splitIndex(String s){ String x[]=s.split(","); String title=""; for(int i=0;i<x.length;i++){ //finding index of name and address if(x[i].contains("name")){ name_index=i; } if(x[i].contains("address")){ addr...
9
public static void main (String argv[]) { // create scanner that reads from standard input Scanner scanner = new Scanner(System.in); if (argv.length > 2) { System.err.println("Usage: java Main " + "[-d]"); System.exit(1); } // if commandline option -d is provided, debug the scanner if (argv.length ==...
9
public Inicio() { //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) "> /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel. * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html ...
6
public String getMessage() { if (!specialConstructor) { return super.getMessage(); } String expected = ""; int maxSize = 0; for (int i = 0; i < expectedTokenSequences.length; i++) { if (maxSize < expectedTokenSequences[i].length) { maxSize ...
9
public void paintComponent(Graphics g) { super.paintComponent(g); Graphics2D g2 = (Graphics2D) g; if(snakeGame.isStarted()) { if(snakeGame.isPause()) { drawPauseMenu(g2); } else if(snakeGame.isPause() == false) { drawCurrentGame(g2); } } else if(snakeGame.isFinishedBlink1()){ dr...
7
public static BigDecimal String2BigDecimal(String str) { BigDecimal bigDecimal = null; if (str != null && str.trim().length() != 0) { bigDecimal = new BigDecimal(str); } return bigDecimal; }
2
public static void order() { int[] array={3,2,4,1,5,7,6,8,9}; int length=array.length; for (int i = 0; i < length-1; i++) { for(int j=0;j<i;j++) { if(array[j+1]<array[j]) { int temp=array[j]; array[j]=array[j+1]; array[j+1]=temp; } ...
4
private void playerChecker() { CollisionResults results = new CollisionResults(); Vector3f ppos = playerData.getPosition(); Vector3f pdir = playerData.getDirection(); Ray ray = new Ray(ppos, pdir); rootNode.collideWith(ray, results); for (int i = 0; i < results.size(); i++) { float dist = results.getColl...
5
public static boolean isValid(ArrayList<Binding> bindings) { WebServer.logDebug("Called isValid with " + bindings.toString()); HashMap<String, Integer> CompletelyReservedPorts = new HashMap<String, Integer>(); for (int i = 0; i < bindings.size(); i++) { if (bindings.get(i).domain.eq...
9
private static void create() throws Exception { Gui.progressBar.setValue(85); FileWriter fileWriter = new FileWriter(newFile); BufferedWriter bufferedWriter = new BufferedWriter(fileWriter); for (int i = 1; i < 141; ++i) { bufferedWriter.write(ConfigTextFilter.splitString[i]); bufferedWriter.ne...
2
protected void ressource(){ // s'il n'y a plus d'arbre sur le terrain alors j'en refait ! if (this.nb_arbre < this.nb_arbre_min){ Random r = new Random(); int valeur ; int valeur2 ; for (int i = 0 ; i < this.nb_arbre_max ; i++){ valeur = r.nextInt(this.longueur); valeur2...
8
public static void main(String[] args) { int i; float inputs06[] = { 20, 22, 21, 24, 24, 23, 25, 26, 20, 24, 26, 26, 25, 27, 28, 27, 29, 27, 25, 24 }; float inputs10[] = { 20, 22, 24, 25, 23, 26, 28, 26, 29, 27...
2
private boolean ValidarPaciente(Paciente p) throws ObjetoNuloException, ValorInvalidoException { if (p == null) { throw new ObjetoNuloException("Paciente nulo"); } /* * if (p.getId() == null || p.getId() < 0) { throw new * ValorInvalidoException( "o identificador do paciente é invalido!"); } */ ...
7
public String getConsumerKey() { return consumerKey; }
0
public void accept() throws IOException { // Get a new channel for the connection request SocketChannel sChannel = _ssChannel.accept(); // If serverSocketChannel is non-blocking, sChannel may be null if (sChannel != null) { SocketAddress address = sChannel.socket().getRemoteSocketAddress(); System.out.p...
1
public static Object[][] readXML(String path) { try { DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory .newInstance(); DocumentBuilder documentBuilder = documentBuilderFactory .newDocumentBuilder(); Document doc = documentBuilder.parse(path); Element item = null; NodeLis...
6
public static void main (String[] args){ Date[] fecha; JSONParser parser = new JSONParser(); Espectaculo espectaculo; /** * Se leen los datos del archivo JSON. El archivo contiene lo necesario para la simulación. */ try { JSONObject escenario = (JS...
6
public String[] getPlayImage() { String[] r = new String[6]; switch (playFrameCounter) { case 0: r[0] = " ;~~,__ "; r[1] = ":-....,-------'`-'._.'"; r[2] = " `-,,, , ,'~~' "; r[3] = " ; ,'~.__; / "; r[4] = " :| :| "; r[5] = " `-' `-' "; ...
6
public void runFileCopyClient() { long startTime = System.currentTimeMillis(); //init Socket try { socket = new DatagramSocket(); } catch (SocketException e) { System.out.println("Have Problem with init Socket"); e.printStackTrace(); } ...
4
public void teste(){ }
0
public long skip(long amount) throws IOException { if (amount < 0) { throw new IllegalArgumentException(); } synchronized (lock) { if (isClosed()) { throw new IOException("Reader is closed"); //$NON-NLS-1$ } if (amount < 1) { ...
7
public boolean cambiarestadoSeriales(entidadPrestamo datosPrestmo) { conectarse(); boolean retornarObj = false; String regser = "update tbl_seriales set Estado = ? where Seriales = ?"; ArrayList seriales_recorrer = datosPrestmo.getSeriales(); String estado = datosPrestmo.getEst...
3
public void setDireccao(char novaDireccao) { if( (this.direccao == 'u' && novaDireccao == 'd') || (this.direccao == 'd' && novaDireccao == 'u') || (this.direccao == 'l' && novaDireccao == 'r') || (this.direccao == 'r' && novaDireccao == 'l') ) { return; } this.direccao = novaDireccao; }
8
@Override public Class getColumnClass(int column) { Class returnValue; if ((column >= 0) && (column < getColumnCount())) { if (getValueAt(0, column) == null) { return String.class; } returnValue = getValueAt(0, column).getClass(); } else { ...
3
public static void main(String[] args) throws BadStateMachineSpecification, InvalidEventException, InterruptedException { ExecutorService pool = Executors.newFixedThreadPool(4); FSMThreadPoolFacade<PerformanceEnum>[] concurrentFSM = new FSMThreadPoolFacade[FSMS]; CountDownLatch latch = new CountDo...
8
public static void premain( String agentArgs, Instrumentation inst ) throws Exception { InputStream input = findConfiguration( agentArgs ); if (input == null) { throw new IOException( "The specified configuration was not found on the file-system in the current-working-directory, inside an...
3
public static TestCase getTestCase(HashMap<String, String> row) { TestCase tc = new TestCase(); if(row!=null && row.size() > 0) { if(row.containsKey("TESTCASE")) tc.setTestCaseNumber(row.get("TESTCASE")); if(row.containsKey("TYPE")) tc.setType(row.get("TYPE")); if(row.containsKey("SOURCEORG")) ...
9
public void saveValues() { FileWriter fw; try { fw = new FileWriter(configFile); } catch (IOException e) { e.printStackTrace(); System.err.println("Critical error attempting to save the server configuration. Stopping the server..."); System.exit(0); return; } PrintWriter pw = new PrintWriter(fw...
4
private void checkLocation(WorldLocation l) { if (!checkedLocations.contains(l)) { if (l.getTile().canItemAlgorithmPass()) { newLocations.add(l); if (possibleItems.contains(l)) { itemLocations.add(l); } } else if (l.getM...
8
public void discoverChildren() { if(!this.storeFile.exists()) return; try { BufferedReader in=new BufferedReader(new FileReader(storeFile)); String line; while((line=in.readLine())!=null) { if(line.length()==0) // skip empty lines continue; if(line.charAt(0)=='#') // skip comment lines ...
6
public com.novativa.www.ws.streamsterapi.Position[] getPositions() throws java.rmi.RemoteException { if (super.cachedEndpoint == null) { throw new org.apache.axis.NoEndPointException(); } org.apache.axis.client.Call _call = createCall(); _call.setOperation(_operations[1]); ...
4
private static void readStuFile(String stuFileName) { try { EasyReader input = new EasyReader(stuFileName); if (input.bad()) { System.err.println("Can't open " + stuFileName); System.exit(1); } Vector lineOfWords = new Vector(); String tmpWord = ""; input.readLine(); // Gets rid of column ...
7
public void deleteByUserNameAndParticipantName(String userName, String participantName) { EntityManager em = PersistenceManager.createEntityManager(); try { em.getTransaction().begin(); List<Openchatroom> ochrs = em.createNamedQuery("Openchatroom.GetByUserAndParticipant", Openchatroom.class) .setPara...
2
private Zyg genZygote(int n) { String bin = convertBin(n,l); String[] b = new String[g.length]; //This is the symbolic binary permutation. for(int i=0;i<g.length;i++) { b[i] = bin.substring(i,i+1); } //this is going to be the list of characters that will...
4
public void jugar() { if (MiSistema.turno == 0) { if (Domino.listaTablero.size() == 0) {//De de tirar un par this.empezarDoble(); } else { this.heuristica1(); } } if (Domino.listaTablero.size() != 0) { ...
5
public static ArrayList sentenceSplit(ArrayList arraylist, String s) { ArrayList arraylist1 = new ArrayList(); int i = s.length(); if(i == 0) { arraylist1.add(""); return arraylist1; } ArrayList arraylist2 = new ArrayList(); for(Iterato...
8
public void setDescription(String lastName) { this.description = lastName; }
0
LabFactoryProperties() { final InputStream rsFromContext = Thread.currentThread().getContextClassLoader().getResourceAsStream(RESOURCE_FACTORY); if ( rsFromContext != null ) { LOGGER.trace("Resource found in Thread Context"); } final InputStream resourceStream = (rsFromContext==null) ? ClassLoader.getSystemCla...
4
public boolean printCheck(boolean trim, int xoldpoint, int xnewpoint, int yoldpoint, int ynewpoint){ boolean btest2=true; if(trim){ if(xoldpoint<xBot)btest2=false; if(xoldpoint>xTop)btest2=false; if(xnewpoint<xBot)btest2=false; if(xnewpoint>xTo...
9
public static Shader buildShader(final String shaderFile, final ShaderType shaderType) { try { final ByteBuffer fileBuffer = FileReader.readFile(shaderFile); final int shaderID = glCreateShader(shaderType.getShaderTypeID()); glShaderSource(shaderID, fileBuffer); glCompileShader(shaderID); if (glGe...
2
public void setView(FindReplaceResultsDialog view) { this.view = view; }
0
public boolean isHidden(Component component) { if (component instanceof DockTab) { return mHidden.contains(component); } if (component == this) { return !hasHidden(); } return false; }
2
public void removePath(final Block callerBlock, final Block returnBlock) { for (int i = 0; i < paths.size(); i++) { final Block[] path = (Block[]) paths.get(i); if ((path[0] == callerBlock) && (path[1] == returnBlock)) { if (FlowGraph.DEBUG) { System.out.println("removing path " + path[0] + " -> " ...
4
private static ArrayList<HashMap<String, String>> getExs(String attribute, String vk, ArrayList<HashMap<String, String>> examples) { ArrayList<HashMap<String, String>> exs = new ArrayList<HashMap<String, String>>(); for (HashMap<String, String> example : examples) { if (example.get(attribute).equals(vk)) { ...
2
public void pausePaallePois() { if (this.pause) { this.pause = false; } else { this.pause = true; } }
1
public static void main(String args[]){ System.out.println("Input the values"); Scanner sc=new Scanner(System.in); int lowerLimit=0; int upperLimit=0; int length; int target[] = null; int dest[] = null; ArrayList arr=null; //while(sc.hasNext()){ lowerLimit=sc.nextInt(); upperLimit=sc.nextInt(); ...
2
public void deleteInformations(String[] code) { for (int i = 0; i < code.length; i++) deleteInformation(code[i]); updateSize(); notifyZElement(); }
1
public void update(int delta){ updateOval(delta); updateMovement(); if(seenButtonTime>0){ seenButtonTime -= delta*0.01f; }else{ seenButtonTime = 30; } }
1
private static URL __getWsdlLocation() { if (AQUARIUSPUBLISHSERVICE_EXCEPTION!= null) { throw AQUARIUSPUBLISHSERVICE_EXCEPTION; } return AQUARIUSPUBLISHSERVICE_WSDL_LOCATION; }
1
public String getEntityPublicId(String ename) { Object entity[] = (Object[]) entityInfo.get(ename); if (entity == null) { return null; } else { return (String) entity[1]; } }
1
public TreeMap<Integer, Integer> getPowersOfTwoDecomposition(BigInteger x) { // Special Cases if (x.compareTo(BigInteger.ZERO) == 0) { return null; } TreeMap<Integer, Integer> result = new TreeMap<Integer, Integer>(); if (x.compareTo(BigInteger.ONE) == 0) { ...
6
public void readFunction(Element function) throws MaltChainedException { boolean hasSubFunctions = function.getAttribute("hasSubFunctions").equalsIgnoreCase("true"); boolean hasFactory = false; if (function.getAttribute("hasFactory").length() > 0) { hasFactory = function.getAttribute("hasFactory").equalsIgn...
9
@Override public Integer insert(TipoUsuarioBeans tipouser) throws DAOException { PreparedStatement pst = null; ResultSet generatedKeys = null; try { pst = con.prepareStatement(sql.getString("INSERT_USUARIO"), Statement.RETURN_GENERATED_KEYS); pst.setInt(1, tipouser.getId_tipo()); pst.setS...
7