rem stringlengths 0 477k | add stringlengths 0 313k | context stringlengths 6 599k |
|---|---|---|
setString(new String(out.toByteArray())); | setString(new String(out.toByteArray(), 0, length)); | void setBinaryStream(InputStream in) throws SQLException { if (in == null) { setNull(true); return; } try { ByteArrayOutputStream out = new ByteArrayOutputStream(); byte[] buff = new byte[4096]; int counter = 0; while ((counter = in.read(buff)) != -1) out.write(buff, 0, counter); setString(new Stri... |
void setUnicodeStream(InputStream in) throws SQLException { | void setUnicodeStream(InputStream in, int length) throws SQLException { | void setUnicodeStream(InputStream in) throws SQLException { if (in == null) { setNull(true); return; } setBinaryStream(in); } |
setBinaryStream(in); | setBinaryStream(in, length); | void setUnicodeStream(InputStream in) throws SQLException { if (in == null) { setNull(true); return; } setBinaryStream(in); } |
collection.update(); | private void processConfirmEditCollection(Context context, HttpServletRequest request, HttpServletResponse response, Community community, Collection collection) throws ServletException, IOException, SQLException, AuthorizeException { if (request.getParameter("create").eq... | |
tri.close(); | public void removeCollection(Collection c) throws SQLException, AuthorizeException, IOException { // Check authorisation AuthorizeManager.authorizeAction(ourContext, this, Constants.REMOVE); log.info(LogManager.getHeader(ourContext, "remove_collection", "community_i... | |
return new BitstreamFormat(context, tri.next()); | retFormat = new BitstreamFormat(context, tri.next()); | public static BitstreamFormat guessFormat(Context context, Bitstream bitstream) throws SQLException { // FIXME: Just setting format to first guess // For now just get the file name String filename = bitstream.getName().toLowerCase(); // Gracefully handle the null case ... |
return null; | retFormat = null; | public static BitstreamFormat guessFormat(Context context, Bitstream bitstream) throws SQLException { // FIXME: Just setting format to first guess // For now just get the file name String filename = bitstream.getName().toLowerCase(); // Gracefully handle the null case ... |
tri.close(); return retFormat; | public static BitstreamFormat guessFormat(Context context, Bitstream bitstream) throws SQLException { // FIXME: Just setting format to first guess // For now just get the file name String filename = bitstream.getName().toLowerCase(); // Gracefully handle the null case ... | |
tri.close(); | public static Community[] findAll(Context context) throws SQLException { TableRowIterator tri = DatabaseManager.query(context, "community", "SELECT * FROM community ORDER BY name"); List communities = new ArrayList(); while (tri.hasNext()) { TableRow row = tr... | |
tri.close(); | public Collection[] getCollections() throws SQLException { List collections = new ArrayList(); // Get the table rows TableRowIterator tri = DatabaseManager .query( ourContext, "collection", "SELECT collection... | |
dir.getEntries().save(true); | dir.getEntries().save(false); | public void logCompleted(SVNDirectory dir) throws SVNException { if (myIsEntriesChanged) { dir.getEntries().save(true); } else { dir.getEntries().close(); } myIsEntriesChanged = false; } |
if (killMe) { dir.destroy("", true); File dirFile = dir.getRoot(); if (SVNWCUtil.isWorkingCopyRoot(dirFile, true)) { return; } String parentPath = "".equals(dir.getPath()) ? null : PathUtil.removeTail(dir.getPath()); if (PathUtil.isEmpty(parentPath)) { parentPath = ""; } SVNDirectory parentDir = dir.getWCAccess().get... | public void logCompleted(SVNDirectory dir) throws SVNException { if (myIsEntriesChanged) { dir.getEntries().save(true); } else { dir.getEntries().close(); } myIsEntriesChanged = false; } | |
setEntriesChanged(mergeResult == SVNStatusType.CONFLICTED); | setEntriesChanged(mergeResult == SVNStatusType.CONFLICTED); } else if (SVNLog.COMMIT.equals(name)) { if (attributes.get(SVNLog.REVISION_ATTR) == null) { SVNErrorManager.error("svn: Missing revision attribute for '" + fileName + "'"); } SVNEntry entry = dir.getEntries().getEntry(fileName, true); if (entry == null || (!"... | public void runCommand(SVNDirectory dir, String name, Map attributes) throws SVNException { String fileName = (String) attributes.remove(SVNLog.NAME_ATTR); DebugLog.log("running: " + name + ":" + fileName + " : " + attributes); if (SVNLog.DELETE_ENTRY.equals(name)) { // check if it i... |
return !(!isValid() || this == SVNRevision.HEAD || getNumber() >= 0 || getDate() != null); | return isValid() && (this == SVNRevision.BASE || this == SVNRevision.WORKING); | public boolean isLocal() { return !(!isValid() || this == SVNRevision.HEAD || getNumber() >= 0 || getDate() != null); } |
public static void main(String[] args) { AckMcastReceiverWindow win=new AckMcastReceiverWindow(); Address sender1=new IpAddress("janet", 1111); Address sender2=new IpAddress("janet", 4444); Address sender3=new IpAddress("janet", 6767); Address sender4=new IpAddress("janet", 3333); | public static void main(String[] args) throws UnknownHostException { AckMcastReceiverWindow win=new AckMcastReceiverWindow(); Address sender1=new IpAddress("janet", 1111); Address sender2=new IpAddress("janet", 4444); Address sender3=new IpAddress("janet", 6767); Address sender4=new IpAddress("janet", 3333); | public static void main(String[] args) { AckMcastReceiverWindow win=new AckMcastReceiverWindow(); Address sender1=new IpAddress("janet", 1111); Address sender2=new IpAddress("janet", 4444); Address sender3=new IpAddress("janet", 6767); Address sender4=new IpAddress("janet", 3333); win.add(sender1, 1); win.add(sende... |
if(v != null && seqnos != null) { for(int i=0; i < seqnos.size(); i++) { seqno=(Long)seqnos.elementAt(i); v.removeElement(seqno); } } | if(v != null && seqnos != null) { for(int i=0; i < seqnos.size(); i++) { seqno=(Long)seqnos.elementAt(i); v.removeElement(seqno); } | public void remove(Object sender, Vector seqnos) { Vector v=(Vector)msgs.get(sender); Long seqno; if(v != null && seqnos != null) { for(int i=0; i < seqnos.size(); i++) { seqno=(Long)seqnos.elementAt(i); v.removeElement(seqno); } } } |
} | public void remove(Object sender, Vector seqnos) { Vector v=(Vector)msgs.get(sender); Long seqno; if(v != null && seqnos != null) { for(int i=0; i < seqnos.size(); i++) { seqno=(Long)seqnos.elementAt(i); v.removeElement(seqno); } } } | |
} return ret.toString(); | public String toString() { StringBuffer ret=new StringBuffer(); Object sender; for(Enumeration e=msgs.keys(); e.hasMoreElements();) { sender=e.nextElement(); ret.append(sender).append(" --> ").append(msgs.get(sender)).append('\n'); } return ret.toString(); } | |
return ret.toString(); } | public String toString() { StringBuffer ret=new StringBuffer(); Object sender; for(Enumeration e=msgs.keys(); e.hasMoreElements();) { sender=e.nextElement(); ret.append(sender).append(" --> ").append(msgs.get(sender)).append('\n'); } return ret.toString(); } | |
debug(">ejbCreate()"); try{ dataSource = (String)lookup("java:comp/env/DataSource", java.lang.String.class); debug("DataSource=" + dataSource); publisherhome = (PublisherDataLocalHome) lookup("java:comp/env/ejb/PublisherData", PublisherDataLocalHome.class); debug("<ejbCreate()"); }catch(Exception e){ throw new EJBExcep... | publisherhome = (PublisherDataLocalHome) getLocator().getLocalHome(PublisherDataLocalHome.COMP_NAME); | public void ejbCreate() throws CreateException { debug(">ejbCreate()"); try{ dataSource = (String)lookup("java:comp/env/DataSource", java.lang.String.class); debug("DataSource=" + dataSource); publisherhome = (PublisherDataLocalHome) lookup("java:comp/env/ejb/PublisherData", Publish... |
while(!foundfree){ try{ if(id > 1) publisherhome.findByPrimaryKey(new Integer(id)); id = ran.nextInt(); }catch(FinderException e){ foundfree = true; | while (!foundfree) { try { if (id > 1) publisherhome.findByPrimaryKey(new Integer(id)); id = ran.nextInt(); } catch (FinderException e) { foundfree = true; } | private Integer findFreePublisherId(){ Random ran = (new Random((new Date()).getTime())); int id = ran.nextInt(); boolean foundfree = false; while(!foundfree){ try{ if(id > 1) publisherhome.findByPrimaryKey(new Integer(id)); id = ran.nextInt(); }catch... |
} return new Integer(id); | return new Integer(id); | private Integer findFreePublisherId(){ Random ran = (new Random((new Date()).getTime())); int id = ran.nextInt(); boolean foundfree = false; while(!foundfree){ try{ if(id > 1) publisherhome.findByPrimaryKey(new Integer(id)); id = ran.nextInt(); }catch... |
if(authorizationsession == null){ try{ IAuthorizationSessionLocalHome authorizationsessionhome = (IAuthorizationSessionLocalHome) lookup("java:comp/env/ejb/AuthorizationSessionLocal",IAuthorizationSessionLocalHome.class); authorizationsession = authorizationsessionhome.create(); }catch(Exception e){ throw new EJBExcept... | if (authorizationsession == null) { try { IAuthorizationSessionLocalHome authorizationsessionhome = (IAuthorizationSessionLocalHome) getLocator().getLocalHome(IAuthorizationSessionLocalHome.COMP_NAME); authorizationsession = authorizationsessionhome.create(); } catch (CreateException e) { throw new EJBException(e); } | private IAuthorizationSessionLocal getAuthorizationSession(Admin admin) { if(authorizationsession == null){ try{ IAuthorizationSessionLocalHome authorizationsessionhome = (IAuthorizationSessionLocalHome) lookup("java:comp/env/ejb/AuthorizationSessionLocal",IAuthorizationSessionLocalHome.c... |
public Collection getAuthorizedPublisherIds(Admin admin){ HashSet returnval = new HashSet(); Collection result = null; boolean superadmin = false; try { superadmin = getAuthorizationSession(admin).isAuthorized(admin,AvailableAccessRules.ROLE_SUPERADMINISTRATOR); result = this.publisherhome.findAll(); Iterator i = resu... | public Collection getAuthorizedPublisherIds(Admin admin) { HashSet returnval = new HashSet(); Collection result = null; boolean superadmin = false; try { superadmin = getAuthorizationSession(admin).isAuthorized(admin, AvailableAccessRules.ROLE_SUPERADMINISTRATOR); result = this.publisherhome.findAll(); Iterator i = re... | public Collection getAuthorizedPublisherIds(Admin admin){ HashSet returnval = new HashSet(); Collection result = null; boolean superadmin = false; // If superadmin return all available publishers try { superadmin = getAuthorizationSession(admin).isAuthorized(admin,AvailableAccessRules.ROLE_SUPERADMI... |
} return returnval; } | if (!superadmin) { Iterator authorizedcas = this.getAuthorizationSession(admin).getAuthorizedCAIds(admin).iterator(); while (authorizedcas.hasNext()) { returnval.addAll(this.getCAAdminSession(admin).getCAInfo(admin, ((Integer) authorizedcas.next()).intValue()).getCRLPublishers()); } } return returnval; } | public Collection getAuthorizedPublisherIds(Admin admin){ HashSet returnval = new HashSet(); Collection result = null; boolean superadmin = false; // If superadmin return all available publishers try { superadmin = getAuthorizationSession(admin).isAuthorized(admin,AvailableAccessRules.ROLE_SUPERADMI... |
if(caadminsession == null){ try{ ICAAdminSessionLocalHome caadminsessionhome = (ICAAdminSessionLocalHome) lookup("java:comp/env/ejb/CAAdminSessionLocal",ICAAdminSessionLocalHome.class); caadminsession = caadminsessionhome.create(); }catch(Exception e){ throw new EJBException(e); } | if (caadminsession == null) { try { ICAAdminSessionLocalHome caadminsessionhome = (ICAAdminSessionLocalHome) getLocator().getLocalHome(ICAAdminSessionLocalHome.COMP_NAME); caadminsession = caadminsessionhome.create(); } catch (CreateException e) { throw new EJBException(e); } | private ICAAdminSessionLocal getCAAdminSession(Admin admin) { if(caadminsession == null){ try{ ICAAdminSessionLocalHome caadminsessionhome = (ICAAdminSessionLocalHome) lookup("java:comp/env/ejb/CAAdminSessionLocal",ICAAdminSessionLocalHome.class); caadminsession = caadminsessio... |
if(logsession == null){ try{ ILogSessionLocalHome logsessionhome = (ILogSessionLocalHome) lookup(ILogSessionLocalHome.COMP_NAME,ILogSessionLocalHome.class); logsession = logsessionhome.create(); }catch(Exception e){ throw new EJBException(e); } | if (logsession == null) { try { ILogSessionLocalHome logsessionhome = (ILogSessionLocalHome) getLocator().getLocalHome(ILogSessionLocalHome.COMP_NAME); logsession = logsessionhome.create(); } catch (CreateException e) { throw new EJBException(e); } | private ILogSessionLocal getLogSession() { if(logsession == null){ try{ ILogSessionLocalHome logsessionhome = (ILogSessionLocalHome) lookup(ILogSessionLocalHome.COMP_NAME,ILogSessionLocalHome.class); logsession = logsessionhome.create(); }catch(Exception e){ ... |
} | public void revokeCertificate(Admin admin, Collection publisherids, Certificate cert, int reason){ Iterator iter = publisherids.iterator(); while(iter.hasNext()){ Integer id = (Integer) iter.next(); try{ PublisherDataLocal pdl = publisherhome.findByPrimaryKey(id); try{ ... | |
} | public boolean storeCRL(Admin admin, Collection publisherids, byte[] incrl, String cafp, int number){ Iterator iter = publisherids.iterator(); boolean returnval = true; while(iter.hasNext()){ Integer id = (Integer) iter.next(); try{ PublisherDataLocal pdl = publisherhome.findBy... | |
} | public boolean storeCertificate(Admin admin, Collection publisherids, Certificate incert, String username, String password, String cafp, int status, int type, ExtendedInformation extendedinformation){ Iterator iter = publisherids.iterator(); boolean returnval = true; while(iter.hasNext()){ Int... | |
decodedPaths.add(PathUtil.decode(path)); | decodedPaths.add(SVNEncodingUtil.uriDecode(path)); | public SVNCommitInfo doDelete(String[] urls, String commitMessage) throws SVNException { if (urls == null || urls.length == 0) { return SVNCommitInfo.NULL; } for (int i = 0; i < urls.length; i++) { urls[i] = validateURL(urls[i]); } List paths = new... |
newPaths.add(PathUtil.decode(PathUtil.tail(rootURL))); | newPaths.add(SVNEncodingUtil.uriDecode(PathUtil.tail(rootURL))); | public SVNCommitInfo doImport(File path, String dstURL, String commitMessage, boolean recursive) throws SVNException { dstURL = validateURL(dstURL); // first find dstURL root. SVNRepository repos = null; String rootURL = dstURL; SVNFileType srcKind = SVNFileType.getType... |
decodedPaths.add(PathUtil.decode(path)); | decodedPaths.add(SVNEncodingUtil.uriDecode(path)); | public SVNCommitInfo doMkDir(String[] urls, String commitMessage) throws SVNException { if (urls == null || urls.length == 0) { return SVNCommitInfo.NULL; } for (int i = 0; i < urls.length; i++) { urls[i] = validateURL(urls[i]); } List paths = new ... |
DebugLog.log("importing dir: " + dir + " to " + importPath); | private boolean importDir(File rootFile, File dir, String importPath, boolean recursive, ISVNEditor editor) throws SVNException { File[] children = dir.listFiles(); boolean changed = false; DebugLog.log("importing dir: " + dir + " to " + importPath); for (int i = 0; children !... | |
DebugLog.log("importing file: " + file + " to " + filePath); | private boolean importFile(File rootFile, File file, SVNFileType fileType, String filePath, ISVNEditor editor) throws SVNException { if (fileType == null || fileType == SVNFileType.UNKNOWN) { SVNErrorManager.error("svn: unknown or unversionable type for '" + file + "'... | |
lockTokens.remove(commitItem.getURL()); | lockTokens.remove(commitItem.getURL().toString()); | SVNCommitPacket removeSkippedItems() { if (this == EMPTY) { return EMPTY; } Collection items = new ArrayList(); Map lockTokens = myLockTokens == null ? null : new HashMap(myLockTokens); for (int i = 0; myCommitItems != null && i < myCommitItems.length; i+... |
} else if (common.equals(url2)) { urls[j] = null; | public static String condenceURLs(String[] urls, Collection condencedPaths, boolean removeRedundantURLs) { if (urls == null || urls.length == 0) { return null; } if (urls.length == 1) { return urls[0]; } String rootURL = urls[0]; for (int i = 0; i < ur... | |
public MethodCall(String method_name, Object[] args, String[] signature) { this.method_name=method_name; this.args=args; this.signature=signature; this.mode=SIGNATURE; | public MethodCall() { | public MethodCall(String method_name, Object[] args, String[] signature) { this.method_name=method_name; this.args=args; this.signature=signature; this.mode=SIGNATURE; } |
public RspList callRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout) { if(dests != null && dests.size() == 0) { if(log.isTraceEnabled()) log.trace(new StringBuffer("destination list of ").append(method_call.getName()). append("() is empty: no need to send message")); return new RspList(); } ... | public RspList callRemoteMethods(Vector dests, String method_name, Object[] args, Class[] types, int mode, long timeout) { MethodCall method_call=new MethodCall(method_name, args, types); return callRemoteMethods(dests, method_call, mode, timeout); | public RspList callRemoteMethods(Vector dests, MethodCall method_call, int mode, long timeout) { if(dests != null && dests.size() == 0) { // don't send if dest list is empty if(log.isTraceEnabled()) log.trace(new StringBuffer("destination list of ").append(method_call.get... |
public Collection getCollection(); | Collection getCollection(); | public Collection getCollection(); |
public Item getItem(); | Item getItem(); | public Item getItem(); |
public EPerson getSubmitter(); | EPerson getSubmitter(); | public EPerson getSubmitter(); |
public boolean hasMultipleFiles(); | boolean hasMultipleFiles(); | public boolean hasMultipleFiles(); |
public boolean hasMultipleTitles(); | boolean hasMultipleTitles(); | public boolean hasMultipleTitles(); |
public boolean isPublishedBefore(); | boolean isPublishedBefore(); | public boolean isPublishedBefore(); |
public void setMultipleFiles(boolean b); | void setMultipleFiles(boolean b); | public void setMultipleFiles(boolean b); |
public void setMultipleTitles(boolean b); | void setMultipleTitles(boolean b); | public void setMultipleTitles(boolean b); |
public void setPublishedBefore(boolean b); | void setPublishedBefore(boolean b); | public void setPublishedBefore(boolean b); |
FBCachedFetcher(FBManagedConnection mc, isc_stmt_handle stmt) throws SQLException { | FBCachedFetcher(FBConnection c, FBStatement fbStatement, isc_stmt_handle stmt) throws SQLException { | FBCachedFetcher(FBManagedConnection mc, isc_stmt_handle stmt) throws SQLException { Object[] localRow = null; rows = new ArrayList(); try { do { localRow = mc.fetch(stmt); if (localRow != null) { ... |
localRow = mc.fetch(stmt); | localRow = c.fetch(stmt); | FBCachedFetcher(FBManagedConnection mc, isc_stmt_handle stmt) throws SQLException { Object[] localRow = null; rows = new ArrayList(); try { do { localRow = mc.fetch(stmt); if (localRow != null) { ... |
} while (localRow != null); | } while (localRow != null && (fbStatement.maxRows==0 || rows.size()<fbStatement.maxRows)); if (rows.size()==0) isEmpty = true; else isBeforeFirst = true; | FBCachedFetcher(FBManagedConnection mc, isc_stmt_handle stmt) throws SQLException { Object[] localRow = null; rows = new ArrayList(); try { do { localRow = mc.fetch(stmt); if (localRow != null) { ... |
mc.closeStatement(stmt, false); | c.closeStatement(stmt, false); | FBCachedFetcher(FBManagedConnection mc, isc_stmt_handle stmt) throws SQLException { Object[] localRow = null; rows = new ArrayList(); try { do { localRow = mc.fetch(stmt); if (localRow != null) { ... |
return null; | return fbStatement; | public Statement getStatement() { return null; } |
if (rowNum >= rows.size()) { return false; } row = (Object[])rows.get(rowNum); rowNum++; if (row != null) copyToSQLVAR(row); return row != null; | if (isEmpty) return false; else if(rowNum == rows.size()) { row = null; rowNum = 0; isAfterLast = true; return false; } else { rowNum++; if (rowNum == 1) isFirst = true; if (rowNum == rows.size()) isLast = true; row = (Object[])rows.get(rowNum-1); copyToSQLVAR(row); return true; } | public boolean next() throws SQLException { log.debug("FBResultSet next - FBCachedFetcher"); if (rowNum >= rows.size()) { return false; } row = (Object[])rows.get(rowNum); rowNum++; if (row != null) copyToSQLVAR(row)... |
FBStatementFetcher(FBManagedConnection mc, FBStatement fbStatement, isc_stmt_handle stmt) { this.mc = mc; | FBStatementFetcher(FBConnection c, FBStatement fbStatement, isc_stmt_handle stmt) throws SQLException { this.c = c; | FBStatementFetcher(FBManagedConnection mc, FBStatement fbStatement, isc_stmt_handle stmt) { this.mc = mc; this.fbStatement = fbStatement; this.stmt = stmt; mc.registerStatement(fbStatement); } |
mc.registerStatement(fbStatement); | c.registerStatement(fbStatement); isEmpty = false; isBeforeFirst = false; isFirst = false; isLast = false; isAfterLast = false; try { nextRow = c.fetch(stmt); row = new Object[nextRow.length]; if (nextRow==null) isEmpty = true; else isBeforeFirst = true; } catch (GDSException ge) { throw new SQLException("fetch problem... | FBStatementFetcher(FBManagedConnection mc, FBStatement fbStatement, isc_stmt_handle stmt) { this.mc = mc; this.fbStatement = fbStatement; this.stmt = stmt; mc.registerStatement(fbStatement); } |
try { row = mc.fetch(stmt); rowNum++; if (row != null) copyToSQLVAR(row); return (row != null); } catch (GDSException ge) { throw new SQLException("fetch problem: " + ge.toString()); } | if (isEmpty) return false; else if (nextRow == null || (fbStatement.maxRows!=0 && rowNum==fbStatement.maxRows)){ isAfterLast = true; rowNum=0; return false; } else { try { row = nextRow; nextRow = c.fetch(stmt); rowNum++; copyToSQLVAR(row); if(rowNum==1) isFirst=true; if((nextRow==null) || (fbStatement.maxRows!=0 && ro... | public boolean next() throws SQLException { log.debug("FBResultSet next - FBStatementFetcher"); try { row = mc.fetch(stmt); rowNum++; if (row != null) copyToSQLVAR(row); return (row != null); } ... |
FBResultSet(FBConnection c, FBStatement fbstatement, isc_stmt_handle stmt) { | FBResultSet(FBConnection c, FBStatement fbstatement, isc_stmt_handle stmt) throws SQLException { | FBResultSet(FBConnection c, FBStatement fbstatement, isc_stmt_handle stmt) { this.c = c; this.mc = c.mc; fbFetcher = new FBStatementFetcher(this.mc, fbstatement, stmt); xsqlvars = stmt.getOutSqlda().sqlvar; } |
this.mc = c.mc; fbFetcher = new FBStatementFetcher(this.mc, fbstatement, stmt); | FBResultSet(FBConnection c, FBStatement fbstatement, isc_stmt_handle stmt) { this.c = c; this.mc = c.mc; fbFetcher = new FBStatementFetcher(this.mc, fbstatement, stmt); xsqlvars = stmt.getOutSqlda().sqlvar; } | |
maxRows = fbstatement.getMaxRows(); fbFetcher = new FBStatementFetcher(this.c, fbstatement, stmt); | FBResultSet(FBConnection c, FBStatement fbstatement, isc_stmt_handle stmt) { this.c = c; this.mc = c.mc; fbFetcher = new FBStatementFetcher(this.mc, fbstatement, stmt); xsqlvars = stmt.getOutSqlda().sqlvar; } | |
throw new SQLException("Not yet implemented"); | firstWarning = null; | public void clearWarnings() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return java.sql.ResultSet.CONCUR_READ_ONLY; | public int getConcurrency() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return java.sql.ResultSet.FETCH_FORWARD; | public int getFetchDirection() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return fetchSize; | public int getFetchSize() throws SQLException { throw new SQLException("Not yet implemented"); } |
protected FBField getField(int columnIndex) throws SQLException { | private FBField getField(int columnIndex) throws SQLException { if (columnIndex> xsqlvars.length) throw new SQLException("invalid column index"); | protected FBField getField(int columnIndex) throws SQLException { FBField thisField = FBField.createField(getXsqlvar(columnIndex)); if (thisField instanceof FBBlobField) ((FBBlobField)thisField).setConnection(c); else if (thisField instanceof FBStringField) ((FBStri... |
throw new SQLException("Not yet implemented"); | return java.sql.ResultSet.TYPE_FORWARD_ONLY; | public int getType() throws SQLException { throw new SQLException("Not yet implemented"); } |
return null; | throw new SQLException("not yet implemented"); | public URL getURL(int param1) throws SQLException { // TODO: implement this java.sql.ResultSet method return null; } |
throw new SQLException("Not yet implemented"); | return firstWarning; | public SQLWarning getWarnings() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return isAfterLast; | public boolean isAfterLast() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return isBeforeFirst; | public boolean isBeforeFirst() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return isFirst; | public boolean isFirst() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | return isLast; | public boolean isLast() throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | if (direction != java.sql.ResultSet.FETCH_FORWARD) throw new SQLException("can't set fetch direction"); | public void setFetchDirection(int direction) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("Not yet implemented"); | if (rows < 0) throw new SQLException("can't set negative fetch size"); else if (rows > maxRows) throw new SQLException("can't set fetch size > maxRows"); else fetchSize = rows; | public void setFetchSize(int rows) throws SQLException { throw new SQLException("Not yet implemented"); } |
throw new SQLException("not yet implemented"); | public void updateArray(int param1, Array param2) throws SQLException { // TODO: implement this java.sql.ResultSet method } | |
throw new SQLException("not yet implemented"); | public void updateBlob(int param1, Blob param2) throws SQLException { // TODO: implement this java.sql.ResultSet method } | |
throw new SQLException("not yet implemented"); | public void updateClob(int param1, Clob param2) throws SQLException { // TODO: implement this java.sql.ResultSet method } | |
throw new SQLException("not yet implemented"); | public void updateObject(int columnIndex, Object x, int scale) throws SQLException { } | |
throw new SQLException("not yet implemented"); | public void updateRef(int param1, Ref param2) throws SQLException { // TODO: implement this java.sql.ResultSet method } | |
throw new SQLException("not yet implemented"); | public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException { } | |
this.timeout=timeout; this.hb_interval=hb_interval; | this.hb_timeout=timeout; this.interval=hb_interval; | public Heartbeat(long timeout, long hb_interval) { this.timeout=timeout; this.hb_interval=hb_interval; } |
writer.write(outstream, HB_PACKET, 1500); Thread.sleep(hb_interval); | timed_writer.write(outstream, HB_PACKET, 1500); Thread.sleep(interval); | public void run() { long diff=0, curr_time=0, num_missed_hbs=0; if(trace) System.out.println("heartbeat to " + remote + ':' + remote_port + " started"); while(!stop_hb) { if(established) { // send heartbeats // 1. Send heartbeat (use timed write) if(outstream != null) { try { writ... |
if(curr_time - last_hb > hb_interval) { num_missed_hbs=(curr_time - last_hb) / hb_interval; | if(curr_time - last_hb > interval) { num_missed_hbs=(curr_time - last_hb) / interval; | public void run() { long diff=0, curr_time=0, num_missed_hbs=0; if(trace) System.out.println("heartbeat to " + remote + ':' + remote_port + " started"); while(!stop_hb) { if(established) { // send heartbeats // 1. Send heartbeat (use timed write) if(outstream != null) { try { writ... |
if(diff >= timeout) { | if(diff >= hb_timeout) { | public void run() { long diff=0, curr_time=0, num_missed_hbs=0; if(trace) System.out.println("heartbeat to " + remote + ':' + remote_port + " started"); while(!stop_hb) { if(established) { // send heartbeats // 1. Send heartbeat (use timed write) if(outstream != null) { try { writ... |
outgoing=writer.createSocket(local, remote, remote_port, hb_interval); | outgoing=timed_writer.createSocket(local, remote, remote_port, interval); | public void run() { long diff=0, curr_time=0, num_missed_hbs=0; if(trace) System.out.println("heartbeat to " + remote + ':' + remote_port + " started"); while(!stop_hb) { if(established) { // send heartbeats // 1. Send heartbeat (use timed write) if(outstream != null) { try { writ... |
Util.sleep(hb_interval); | Util.sleep(interval); | public void run() { long diff=0, curr_time=0, num_missed_hbs=0; if(trace) System.out.println("heartbeat to " + remote + ':' + remote_port + " started"); while(!stop_hb) { if(established) { // send heartbeats // 1. Send heartbeat (use timed write) if(outstream != null) { try { writ... |
try {thread.join(timeout+1000);} catch(Exception e) {} | try {thread.join(hb_timeout+1000);} catch(Exception e) {} | public synchronized void stop() { if(thread != null && thread.isAlive()) { stop_hb=true; missed_hb=false; thread.interrupt(); try {thread.join(timeout+1000);} catch(Exception e) {} thread=null; } } |
public Link(String local_addr, int local_port, String remote_addr, int remote_port, Receiver r) { this(local_addr, local_port, remote_addr, remote_port); setReceiver(r); | public Link(String local_addr, int local_port, String remote_addr, int remote_port) { this.local_addr=local_addr; this.local_port=local_port; this.remote_addr=remote_addr; this.remote_port=remote_port; hb=new Heartbeat(timeout, hb_interval); | public Link(String local_addr, int local_port, String remote_addr, int remote_port, Receiver r) { this(local_addr, local_port, remote_addr, remote_port); setReceiver(r); } |
log.error("\nLink <local host> <local port> <remote host> <remote port>\n"); | System.err.println("\nLink <local host> <local port> <remote host> <remote port>\n"); | public static void main(String[] args) { String local, remote; int local_port, remote_port; if(args.length != 4) { log.error("\nLink <local host> <local port> <remote host> <remote port>\n"); return; } local=args[0]; remote=args[2]; local_port=Integer.parseInt(args[1]); remote_port=Integer.parseInt(a... |
log.error(e); | System.err.println(e); | public static void main(String[] args) { String local, remote; int local_port, remote_port; if(args.length != 4) { log.error("\nLink <local host> <local port> <remote host> <remote port>\n"); return; } local=args[0]; remote=args[2]; local_port=Integer.parseInt(args[1]); remote_port=Integer.parseInt(a... |
Socket ret=null; | public synchronized Socket createSocket(InetAddress local, InetAddress remote, int port, long timeout) throws Exception, Timeout, InterruptedException { Socket ret=null; try { this.timeout=timeout; completed=false; start(local, remote, port); if(thread == null) return null; thread.join(... | |
} catch(IllegalMonitorStateException ex) { throw ex; | public Object peek() throws QueueClosedException { Object retval=null; synchronized(mutex) { while(size == 0) { if(closed) throw new QueueClosedException(); try { mutex.wait(); } catch(IllegalM... | |
if(log.isInfoEnabled()) log.info("created a pool of " + MAX_NUM + " threads"); | if(log.isDebugEnabled()) log.debug("created a pool of " + MAX_NUM + " threads"); | public ThreadPool(int max_num) { MAX_NUM=max_num; pool=new ReusableThread[MAX_NUM]; available_threads=new boolean[MAX_NUM]; for(int i=0; i < pool.length; i++) { pool[i]=null; available_threads[i]=true; } if(log.isInfoEnabled()) log.info("created a ... |
public static void main(String[] args) { | public static void main(String[] args) throws UnknownHostException { | public static void main(String[] args) { Gossip id1, id2; id1=new Gossip(new org.jgroups.stack.IpAddress("daddy", 4567), 23); id2=new Gossip(new org.jgroups.stack.IpAddress("133.164.130.19", 4567), 23); System.out.println(id1.equals(id2)); } |
if (!properties.containsKey(SVNRevisionProperty.AUTHOR)) { | if (!properties.containsKey(SVNRevisionProperty.LOG)) { | private void updateRevisionProperties(SVNRepository repository, long revision, Map properties) throws SVNCancelException, SVNException { if (!properties.containsKey(SVNRevisionProperty.AUTHOR)) { properties.put(SVNRevisionProperty.AUTHOR, null); } if (!properties.containsKey(SVNRevis... |
/* | public static void main(String[] args) { ISVNReporter r = new ISVNReporter() { public void setPath(String path, String lockToken, long revision, boolean startEmpty) throws SVNException { System.out.println("set-path '" + path + "' : " + revision); } ... | |
}; | };*/ | public static void main(String[] args) { ISVNReporter r = new ISVNReporter() { public void setPath(String path, String lockToken, long revision, boolean startEmpty) throws SVNException { System.out.println("set-path '" + path + "' : " + revision); } ... |
SVNWCAccess wcAccess = SVNWCAccess.create(new File("c:/")); | wcAccess = SVNWCAccess.create(new File("e:/i/test4/")); final SVNReporter reporter = new SVNReporter(wcAccess, true); ISVNReporterBaton baton = new ISVNReporterBaton() { public void report(ISVNReporter r) throws SVNException { reporter.report(r); } }; wcAccess.open(true, true); String url = wcAccess.getAnchor().getEntr... | public static void main(String[] args) { ISVNReporter r = new ISVNReporter() { public void setPath(String path, String lockToken, long revision, boolean startEmpty) throws SVNException { System.out.println("set-path '" + path + "' : " + revision); } ... |
System.out.println("Restored: " + event.getPath()); | System.out.println("event: " + event.getPath()); | public static void main(String[] args) { ISVNReporter r = new ISVNReporter() { public void setPath(String path, String lockToken, long revision, boolean startEmpty) throws SVNException { System.out.println("set-path '" + path + "' : " + revision); } ... |
SVNReporter reporter = new SVNReporter(wcAccess, true); reporter.report(r); | public static void main(String[] args) { ISVNReporter r = new ISVNReporter() { public void setPath(String path, String lockToken, long revision, boolean startEmpty) throws SVNException { System.out.println("set-path '" + path + "' : " + revision); } ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.