rem
stringlengths
0
477k
add
stringlengths
0
313k
context
stringlengths
6
599k
parameterWasSet(parameterIndex);
public void setBytes(int parameterIndex, byte[] x) throws SQLException { getField(parameterIndex).setBytes(x); }
parameterWasSet(parameterIndex);
public void setDate(int parameterIndex, Date x) throws SQLException { getField(parameterIndex).setDate(x); }
parameterWasSet(parameterIndex);
public void setDouble(int parameterIndex, double x) throws SQLException { getField(parameterIndex).setDouble(x); }
parameterWasSet(parameterIndex);
public void setFloat(int parameterIndex, float x) throws SQLException { getField(parameterIndex).setFloat(x); }
parameterWasSet(parameterIndex);
public void setInt(int parameterIndex, int x) throws SQLException { getField(parameterIndex).setInteger(x); }
parameterWasSet(parameterIndex);
public void setLong(int parameterIndex, long x) throws SQLException { getField(parameterIndex).setLong(x); }
parameterWasSet(parameterIndex);
public void setNull(int parameterIndex, int sqlType) throws SQLException { fixedStmt.getInSqlda().sqlvar[parameterIndex - 1].sqlind = -1; fixedStmt.getInSqlda().sqlvar[parameterIndex - 1].sqldata = null; }
parameterWasSet(parameterIndex);
public void setObject(int parameterIndex, Object x) throws SQLException { getField(parameterIndex).setObject(x); }
parameterWasSet(parameterIndex);
public void setShort(int parameterIndex, short x) throws SQLException { getField(parameterIndex).setShort(x); }
parameterWasSet(parameterIndex);
public void setString(int parameterIndex, String x) throws SQLException { getField(parameterIndex).setString(x); }
parameterWasSet(parameterIndex);
public void setTime(int parameterIndex, Time x) throws SQLException { getField(parameterIndex).setTime(x); }
parameterWasSet(parameterIndex);
public void setTimestamp(int parameterIndex, Timestamp x) throws SQLException { getField(parameterIndex).setTimestamp(x); }
currentRs = new FBResultSetWithFields(mc, this, fixedStmt);
currentRs = new FBResultSetWithFields(c, this, fixedStmt);
public ResultSet getResultSet() throws SQLException { if (currentRs != null) { throw new SQLException("Only one resultset at a time/statement!"); } if (fixedStmt == null) { throw new SQLException("No statement just executed"); } if (currentCachedResultSet !=...
if (gdsHelper == null) return false;
private boolean isOctetsAsBytes() { return gdsHelper.getDatabaseParameterBuffer().hasArgument( DatabaseParameterBufferExtension.OCTETS_AS_BYTES); }
return new TranslatingReader(in, charsetName, mappingPath);
if (charsetName != null) return new TranslatingReader(in, charsetName, mappingPath); else return new TranslatingReader(in, mappingPath);
static TranslatingReader getInstance(InputStream in, String charsetName, String mappingPath) throws SQLException { try { return new TranslatingReader(in, charsetName, mappingPath); } catch(UnsupportedEncodingException ex) { throw new FBSQLException("Cannot set ...
e.printStackTrace();
public byte[] blame(String path, Revision revisionStart, Revision revisionEnd) throws ClientException { SVNLogClient client = getSVNLogClient(); final ByteArrayOutputStream baos = new ByteArrayOutputStream(); ISVNAnnotateHandler handler = new ISVNAnnotateHandler(){ public void handle...
e.printStackTrace();
public void handleLine(Date date, long revision, String author, String line) { StringBuffer result = new StringBuffer(); result.append(Long.toString(revision)); result.append(author != null ? SVNCommand.formatString(author, 10, false) : " -"); ...
e.printStackTrace();
protected static void throwException(SVNException e) throws ClientException { ClientException ec = new ClientException(e.getMessage(), "", 0); DebugLog.error(ec); DebugLog.error(e); e.printStackTrace(); if (e.getErrors() != null) { for(int i = 0; i < e.getErrors().lengt...
String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { if (myBasePath != null) { path = getDisplayPath(new File(myBasePath, path));
String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { path = getDisplayPath(path); int i = 0; for(; i < myAnchorPath1.length() && i < myAnchorPath2.length() && myAnchorPath1.charAt(i) == myAnchorPath2.charAt(i); i++) {} if (i < myAnchorPath1.length() || i < myAnchorPat...
public void displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { if (myBasePath != null) { path = getDisplayPath(new File(myBasePath, path)); } rev1 = rev1 =...
bos.write(path.getBytes(getEncoding()));
bos.write(p1.getBytes(getEncoding()));
public void displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { if (myBasePath != null) { path = getDisplayPath(new File(myBasePath, path)); } rev1 = rev1 =...
bos.write(path.getBytes(getEncoding()));
bos.write(p2.getBytes(getEncoding()));
public void displayFileDiff(String path, File file1, File file2, String rev1, String rev2, String mimeType1, String mimeType2, OutputStream result) throws SVNException { if (myBasePath != null) { path = getDisplayPath(new File(myBasePath, path)); } rev1 = rev1 =...
public void displayPropDiff(String path, Map baseProps, Map diff, OutputStream result) throws SVNException { if (myBasePath != null) { path = getDisplayPath(new File(myBasePath, path)); }
public void displayPropDiff(String path, Map baseProps, Map diff, OutputStream result) throws SVNException { path = getDisplayPath(path);
public void displayPropDiff(String path, Map baseProps, Map diff, OutputStream result) throws SVNException { if (myBasePath != null) { path = getDisplayPath(new File(myBasePath, path)); } ByteArrayOutputStream bos = new ByteArrayOutputStream(); try { bos....
public String getDisplayPath(File file) { String fullPath = file.getAbsolutePath().replace(File.separatorChar, '/'); if (fullPath.equals(myAnchorPath1)) { return ""; } else if (fullPath.startsWith(myAnchorPath1 + "/")) { fullPath = fullPath.substring(myAnchorPath1.length() + 1);
protected String getDisplayPath(String path) { if (myBasePath == null) { return path;
public String getDisplayPath(File file) { String fullPath = file.getAbsolutePath().replace(File.separatorChar, '/'); if (fullPath.equals(myAnchorPath1)) { return ""; } else if (fullPath.startsWith(myAnchorPath1 + "/")) { fullPath = fullPath.substring(myAnchorPath1.length()...
return fullPath;
if (path == null) { path = ""; } if (path.indexOf(": return path; } String basePath = myBasePath.getAbsolutePath().replace(File.separatorChar, '/'); if (path.equals(basePath)) { return "."; } if (path.startsWith(basePath + "/")) { return path.substring(basePath.length() + 1); } return path;
public String getDisplayPath(File file) { String fullPath = file.getAbsolutePath().replace(File.separatorChar, '/'); if (fullPath.equals(myAnchorPath1)) { return ""; } else if (fullPath.startsWith(myAnchorPath1 + "/")) { fullPath = fullPath.substring(myAnchorPath1.length()...
String copyUrl = info.getCopyFromURL();
String copyUrl = info.getCopyFromURL() != null ? info.getCopyFromURL().toString() : null;
public static Info createInfo(SVNInfo info) { if(info == null){ return null; } int schedule = ScheduleKind.normal; if (SVNProperty.SCHEDULE_ADD.equals(info.getSchedule())) { schedule = ScheduleKind.add; } else if (SVNProperty.SCHEDULE_DELETE.equals(info.getSc...
info.getURL(),
info.getURL() != null ? info.getURL().toString() : null,
public static Info createInfo(SVNInfo info) { if(info == null){ return null; } int schedule = ScheduleKind.normal; if (SVNProperty.SCHEDULE_ADD.equals(info.getSchedule())) { schedule = ScheduleKind.add; } else if (SVNProperty.SCHEDULE_DELETE.equals(info.getSc...
info.getRepositoryRootURL(),
info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null,
public static Info createInfo(SVNInfo info) { if(info == null){ return null; } int schedule = ScheduleKind.normal; if (SVNProperty.SCHEDULE_ADD.equals(info.getSchedule())) { schedule = ScheduleKind.add; } else if (SVNProperty.SCHEDULE_DELETE.equals(info.getSc...
String copyUrl = info.getCopyFromURL();
String copyUrl = info.getCopyFromURL() != null ? info.getCopyFromURL().toString() : null;
public static Info2 createInfo2(SVNInfo info) { if(info == null){ return null; } int schedule = ScheduleKind.normal; if (SVNProperty.SCHEDULE_ADD.equals(info.getSchedule())) { schedule = ScheduleKind.add; } else if (SVNProperty.SCHEDULE_DELETE.equals(info.get...
info.getURL(),
info.getURL() != null ? info.getURL().toString() : null,
public static Info2 createInfo2(SVNInfo info) { if(info == null){ return null; } int schedule = ScheduleKind.normal; if (SVNProperty.SCHEDULE_ADD.equals(info.getSchedule())) { schedule = ScheduleKind.add; } else if (SVNProperty.SCHEDULE_DELETE.equals(info.get...
info.getRepositoryRootURL(),
info.getRepositoryRootURL() != null ? info.getRepositoryRootURL().toString() : null,
public static Info2 createInfo2(SVNInfo info) { if(info == null){ return null; } int schedule = ScheduleKind.normal; if (SVNProperty.SCHEDULE_ADD.equals(info.getSchedule())) { schedule = ScheduleKind.add; } else if (SVNProperty.SCHEDULE_DELETE.equals(info.get...
public void doLog(SVNURL url, String[] paths, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean reportPaths,
public void doLog(File[] paths, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean reportPaths,
public void doLog(SVNURL url, String[] paths, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean reportPaths, long limit, ISVNLogEntryHandler handler) throws SVNException { if (startRevision.isValid() && !endRevision.isValid()) { endRevision = startRevision...
startRevision = SVNRevision.HEAD;
startRevision = SVNRevision.BASE;
public void doLog(SVNURL url, String[] paths, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean reportPaths, long limit, ISVNLogEntryHandler handler) throws SVNException { if (startRevision.isValid() && !endRevision.isValid()) { endRevision = startRevision...
paths = paths == null || paths.length == 0 ? new String[] {""} : paths; SVNRepository repos = createRepository(url); long startRev = getRevisionNumber(startRevision, repos, null); long endRev = getRevisionNumber(endRevision, repos, null); repos.log(paths, startRev, endRev, reportPaths, stopOnCopy, limit, handler);
String[] urls = new String[paths.length]; for (int i = 0; i < paths.length; i++) { File path = paths[i]; SVNWCAccess wcAccess = createWCAccess(path); SVNEntry entry = wcAccess.getTargetEntry(); if (entry == null) { SVNErrorManager.error("svn: '" + path + "' is not under version control"); return; } if (entry.getURL() =...
public void doLog(SVNURL url, String[] paths, SVNRevision startRevision, SVNRevision endRevision, boolean stopOnCopy, boolean reportPaths, long limit, ISVNLogEntryHandler handler) throws SVNException { if (startRevision.isValid() && !endRevision.isValid()) { endRevision = startRevision...
if (entry.isDirectory()) {
if (entry.isDirectory() && wcAccess.getAnchor() != wcAccess.getTarget()) {
public void doRevert(File path, boolean recursive) throws SVNException { SVNWCAccess wcAccess = createWCAccess(path); // force recursive lock. boolean reverted = false; boolean replaced = false; SVNNodeKind kind = null; Collection recursiveFiles = new ArrayList(); tr...
if (kind == SVNNodeKind.DIR) { SVNEntry inner = wcAccess.getTarget().getEntries() .getEntry("", true);
if (kind == SVNNodeKind.DIR && wcAccess.getTarget() != wcAccess.getAnchor()) { SVNEntry inner = wcAccess.getTarget().getEntries().getEntry("", true);
public void doRevert(File path, boolean recursive) throws SVNException { SVNWCAccess wcAccess = createWCAccess(path); // force recursive lock. boolean reverted = false; boolean replaced = false; SVNNodeKind kind = null; Collection recursiveFiles = new ArrayList(); tr...
String url = status.getURL();
String url = status.getURL() != null ? status.getURL().toString() : null;
public static Status createStatus(String path, SVNStatus status) { if(status == null){ return null; } String url = status.getURL(); int nodeKind = getNodeKind(status.getKind()); if (status.getContentsStatus() == SVNStatusType.STATUS_IGNORED) { nodeKind = Node...
public Subject getSubject();
Subject getSubject();
public Subject getSubject();
write("(w((nnw))", buffer);
write("(w(nnw))", buffer);
public void replay(long lowRevision, long highRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException { Object[] buffer = new Object[] { "replay", getRevisionObject(highRevision), getRevisionObject(lowRevision), Boolean.valueOf(sendDeltas) }; try { openConnection...
write("(w())", new Object[] {"success"});
public void replay(long lowRevision, long highRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException { Object[] buffer = new Object[] { "replay", getRevisionObject(highRevision), getRevisionObject(lowRevision), Boolean.valueOf(sendDeltas) }; try { openConnection...
byte[] response = authenticator.buildChallengeReponse((byte[]) items[1]);
public void authenticate(SVNRepositoryImpl repository) throws SVNException { SVNErrorMessage failureReason = null; Object[] items = read("[((*W)?S)]", null); List mechs = SVNReader.getList(items, 0); myRealm = SVNReader.getString(items, 1); if (mechs == null || mechs.size() == 0) ...
byte[] response = authenticator.buildChallengeReponse((byte[]) items[1]);
public void authenticate(SVNRepositoryImpl repository) throws SVNException { SVNErrorMessage failureReason = null; Object[] items = read("[((*W)?S)]", null); List mechs = SVNReader.getList(items, 0); myRealm = SVNReader.getString(items, 1); if (mechs == null || mechs.size() == 0) ...
protected synchronized void unlock() { synchronized(this) { if (--myLockCount <= 0) { myLockCount = 0; myLocker = null; notifyAll(); } } }
public abstract void unlock(Map pathToTokens, boolean force, ISVNLockHandler handler) throws SVNException;
protected synchronized void unlock() { synchronized(this) { if (--myLockCount <= 0) { myLockCount = 0; myLocker = null; notifyAll(); } } }
public abstract void diff(SVNURL url, long revision, String target, boolean ignoreAncestry, boolean recursive, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException;
public abstract void diff(SVNURL url, long targetRevision, long revision, String target, boolean ignoreAncestry, boolean recursive, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException;
public abstract void diff(SVNURL url, long revision, String target, boolean ignoreAncestry, boolean recursive, ISVNReporterBaton reporter, ISVNEditor editor) throws SVNException;
public abstract ISVNEditor getCommitEditor(String logMessage, Map locks, boolean keepLocks, final ISVNWorkspaceMediator mediator) throws SVNException;
public ISVNEditor getCommitEditor(String logMessage, final ISVNWorkspaceMediator mediator) throws SVNException { return getCommitEditor(logMessage, null, false, mediator); }
public abstract ISVNEditor getCommitEditor(String logMessage, Map locks, boolean keepLocks, final ISVNWorkspaceMediator mediator) throws SVNException;
int sourceOffset = readOffset();
long sourceOffset = readLongOffset();
public void nextWindow(byte[] data, int offset, int length, String path, ISVNDeltaConsumer consumer) throws SVNException { appendToBuffer(data, offset, length); if (myHeaderBytes < 4) { if (myBuffer.remaining() < 4) { return; } if (myBuffer.get(0) != 'S'...
public abstract long log(String[] targetPaths, long startRevision, long endRevision, boolean changedPath, boolean strictNode, long limit, ISVNLogEntryHandler handler) throws SVNException;
public long log(String[] targetPaths, long startRevision, long endRevision, boolean changedPath, boolean strictNode, ISVNLogEntryHandler handler) throws SVNException { return log(targetPaths, startRevision, endRevision,changedPath,strictNode, 0, handler); }
public abstract long log(String[] targetPaths, long startRevision, long endRevision, boolean changedPath, boolean strictNode, long limit, ISVNLogEntryHandler handler) throws SVNException;
clearBatch();
public int[] executeBatch() throws SQLException { Object syncObject = getSynchronizationObject(); LinkedList results = new LinkedList(); Iterator iter = batchList.iterator(); boolean commit = false; synchronized(syncObject) { c.ensureInTransaction(); ...
metadata.append("<didl:Resource ref=\""+ConfigurationManager.getProperty("dspace.url")+"/bitstream/"+itemhandle+"/"+bitstreams[k].getSequenceID()+"/"+bitstreams[k].getName() ); metadata.append("\" mimeType=\""); metadata.append(bitstreams[k].getFormat().getMIMEType()); metadata.append("\">"); metadata.append("</didl:Re...
if (bitstreams[k].getSize()> maxsize) { metadata.append("<didl:Resource ref=\""+ConfigurationManager.getProperty("dspace.url")+"/bitstream/"+itemhandle+"/"+bitstreams[k].getSequenceID()+"/"+bitstreams[k].getName() ); metadata.append("\" mimeType=\""); metadata.append(bitstreams[k].getFormat().getMIMEType()); metadata.a...
public String createMetadata(Object nativeItem) throws CannotDisseminateFormatException { Item item = ((HarvestedItemInfo) nativeItem).item; Date d = ((HarvestedItemInfo) nativeItem).datestamp; String ITEMDATE = new DCDate(d).toString(); // Get all the DC ...
System.err.println("Caught exception:"+ex.getCause()); ex.printStackTrace(); metadata.append("http:
ex.printStackTrace(); metadata.append("<didl:Resource ref=\""+ConfigurationManager.getProperty("dspace.url")+"/bitstream/"+itemhandle+"/"+bitstreams[k].getSequenceID()+"/"+bitstreams[k].getName() ); metadata.append("\" mimeType=\""); metadata.append(bitstreams[k].getFormat().getMIMEType()); metadata.append("\">");
public String createMetadata(Object nativeItem) throws CannotDisseminateFormatException { Item item = ((HarvestedItemInfo) nativeItem).item; Date d = ((HarvestedItemInfo) nativeItem).datestamp; String ITEMDATE = new DCDate(d).toString(); // Get all the DC ...
public DCDate(Date date)
public DCDate()
public DCDate(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); // Set all fields setDateLocal ( calendar.get(Calendar.YEAR), // Uses 1 to 12 implementation below instead of Java's // 0 to 11 convention ...
Calendar calendar = Calendar.getInstance(); calendar.setTime(date); setDateLocal ( calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH) + 1, calendar.get(Calendar.DAY_OF_MONTH), calendar.get(Calendar.HOUR_OF_DAY), calendar.get(Calendar.MINUTE), calendar.get(Calendar.SECOND) );
year = month = day = hours = minutes = seconds = -1; localGC = null;
public DCDate(Date date) { Calendar calendar = Calendar.getInstance(); calendar.setTime(date); // Set all fields setDateLocal ( calendar.get(Calendar.YEAR), // Uses 1 to 12 implementation below instead of Java's // 0 to 11 convention ...
if( dbai.getFileName().indexOf(':') == -1 && dbai.getFileName().startsWith("/") == false ) { fileName = "/" +dbai.getFileName(); } else
private String getEmbeddedServerUrl(String file_name) throws GDSException { if(log != null) log.debug("Original file name: "+file_name); DbAttachInfo dbai = new DbAttachInfo(file_name); final String fileName; if( dbai.getFileName().indexOf(':') == -1...
public void debug(Object message, Throwable t) { if (loggingAvailable) { log.log(Priority.DEBUG, message, t); } }
abstract public void debug(Object message);
public void debug(Object message, Throwable t) { if (loggingAvailable) { log.log(Priority.DEBUG, message, t); } }
void addBlob(final isc_blob_handle_impl blob) { if (blobs==null) blobs = new ArrayList();
void addBlob(isc_blob_handle_impl blob) {
void addBlob(final isc_blob_handle_impl blob) { if (blobs==null) blobs = new ArrayList(); blobs.add(blob); // blob.next = rbl_next; // rbl_next = blob; }
String footerJSP = JSPManager.getLocalJSP(footer);
public int doEndTag() throws JspException { // Footer file to use String footer = "/layout/footer-default.jsp"; // Choose default flavour unless one is specified if (style != null) { footer = "/layout/footer-" + style.toLowerCase() + ".jsp"; } tr...
config.getServletContext().getRequestDispatcher(footerJSP);
config.getServletContext().getRequestDispatcher(footer);
public int doEndTag() throws JspException { // Footer file to use String footer = "/layout/footer-default.jsp"; // Choose default flavour unless one is specified if (style != null) { footer = "/layout/footer-" + style.toLowerCase() + ".jsp"; } tr...
String headerJSP = JSPManager.getLocalJSP(header);
public int doStartTag() throws JspException { ServletRequest request = pageContext.getRequest(); // header file String header = "/layout/header-default.jsp"; // Choose default style unless one is specified if (style != null) { header = "/layout/...
config.getServletContext().getRequestDispatcher(headerJSP);
config.getServletContext().getRequestDispatcher(header);
public int doStartTag() throws JspException { ServletRequest request = pageContext.getRequest(); // header file String header = "/layout/header-default.jsp"; // Choose default style unless one is specified if (style != null) { header = "/layout/...
FBResultSet(XSQLVAR[] xsqlvars, ArrayList rows) throws SQLException { fbFetcher = new FBCachedFetcher(rows); this.xsqlvars = xsqlvars;
FBResultSet(FBManagedConnection mc, FBStatement fbstatement, isc_stmt_handle stmt) { fbFetcher = new FBStatementFetcher(mc, fbstatement, stmt); this.mc = mc; xsqlvars = stmt.getOutSqlda().sqlvar;
FBResultSet(/*FBManagedConnection mc, */XSQLVAR[] xsqlvars, ArrayList rows) throws SQLException { fbFetcher = new FBCachedFetcher(rows); //this.mc = mc; this.xsqlvars = xsqlvars; }
options.addOption("l", "looping", false, "Loop through bitstreams");
options.addOption("l", "looping", false, "Loop once through bitstreams");
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
"Continuously loop through bitstreams");
"Loop continuously through bitstreams");
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
options.addOption("e", "errors", false, "Report Errors Only");
options.addOption("v", "verbose", false, "Report all processing");
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
if (line.getOptions().length == 0)
if (line.hasOption('l'))
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
processStart, false), 1);
new BitstreamInfoDAO(), processStart, false), count);
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
if (line.hasOption('l')) { dispatcher = new SimpleDispatcher(processStart, false); } else if (line.hasOption('L')) { dispatcher = new SimpleDispatcher(processStart, true); } else if (line.hasOption('b')) { String[] ids = line.getOptionValues('b'); List idList = new ArrayList(ids.length); for (int i = 0; i < ids.lengt...
dispatcher = new LimitedCountDispatcher(new SimpleDispatcher( new BitstreamInfoDAO(), processStart, false), 1);
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
if (dispatcher == null) { System.out .println("Error: insufficient option commands to run checker."); printHelp(options); }
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
if (line.hasOption('e'))
if (line.hasOption('v'))
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
checker.setReportErrorsOnly(true);
checker.setReportVerbose(true);
public static void main(String[] args) { // set up command line parser CommandLineParser parser = new PosixParser(); CommandLine line = null; // create an options object and populate it Options options = new Options(); options.addOption("l", "looping", false, "Loop throu...
System.out.println("\nLoop through all bitstreams: "
System.out.println("\nLoop once through all bitstreams: "
private static void printHelp(Options options) { HelpFormatter myhelp = new HelpFormatter(); myhelp.printHelp("Checksum Checker\n", options); System.out .println("\nSpecify a duration for checker process, using s(seconds)," + "m(minutes), or h(hours): Ch...
.println("\nLoop through all bitstreams continuously: ChecksumChecker -L");
.println("\nLoop continuously through all bitstreams: ChecksumChecker -L");
private static void printHelp(Options options) { HelpFormatter myhelp = new HelpFormatter(); myhelp.printHelp("Checksum Checker\n", options); System.out .println("\nSpecify a duration for checker process, using s(seconds)," + "m(minutes), or h(hours): Ch...
System.out.println("Default (no arguments) is '-c 1'"); System.out.println("\nReport errors only in logs: ChecksumChecker -e");
System.out.println("\nReport all processing (verbose)(default reports only errors): ChecksumChecker -v"); System.out.println("\nDefault (no arguments) is equivalent to '-c 1'");
private static void printHelp(Options options) { HelpFormatter myhelp = new HelpFormatter(); myhelp.printHelp("Checksum Checker\n", options); System.out .println("\nSpecify a duration for checker process, using s(seconds)," + "m(minutes), or h(hours): Ch...
public SimpleDispatcher(Date startTime, boolean looping)
public SimpleDispatcher(BitstreamInfoDAO bitstreamInfoDAO, Date startTime, boolean looping)
public SimpleDispatcher(Date startTime, boolean looping) { this.processStartTime = startTime; this.loopContinuously = looping; }
this.bitstreamInfoDAO = bitstreamInfoDAO;
public SimpleDispatcher(Date startTime, boolean looping) { this.processStartTime = startTime; this.loopContinuously = looping; }
public LimitedCountDispatcher(BitstreamDispatcher del, int count)
public LimitedCountDispatcher()
public LimitedCountDispatcher(BitstreamDispatcher del, int count) { this(del); remaining = count; }
this(del); remaining = count;
this((BitstreamDispatcher) PluginManager .getSinglePlugin(BitstreamDispatcher.class));
public LimitedCountDispatcher(BitstreamDispatcher del, int count) { this(del); remaining = count; }
public ListDispatcher(List bitstreamIds)
private ListDispatcher()
public ListDispatcher(List bitstreamIds) { Collections.reverse(bitstreamIds); bitstreams.addAll(bitstreamIds); }
Collections.reverse(bitstreamIds); bitstreams.addAll(bitstreamIds);
;
public ListDispatcher(List bitstreamIds) { Collections.reverse(bitstreamIds); bitstreams.addAll(bitstreamIds); }
public HandleDispatcher(String hdl)
private HandleDispatcher()
public HandleDispatcher(String hdl) { handle = hdl; }
handle = hdl;
;
public HandleDispatcher(String hdl) { handle = hdl; }
public LimitedDurationDispatcher(BitstreamDispatcher dispatcher, Date endTime)
private LimitedDurationDispatcher()
public LimitedDurationDispatcher(BitstreamDispatcher dispatcher, Date endTime) { delegate = dispatcher; end = endTime.getTime(); }
delegate = dispatcher; end = endTime.getTime();
end = 0L; delegate = null;
public LimitedDurationDispatcher(BitstreamDispatcher dispatcher, Date endTime) { delegate = dispatcher; end = endTime.getTime(); }
public ResultsLogger(Date startDt)
private ResultsLogger()
public ResultsLogger(Date startDt) { this.resultDAO = new ChecksumResultDAO(); LOG.info(msg("run-start-time") + ": " + DATE_FORMAT.format(startDt)); }
this.resultDAO = new ChecksumResultDAO(); LOG.info(msg("run-start-time") + ": " + DATE_FORMAT.format(startDt));
;
public ResultsLogger(Date startDt) { this.resultDAO = new ChecksumResultDAO(); LOG.info(msg("run-start-time") + ": " + DATE_FORMAT.format(startDt)); }
try { bitstreamInfoDAO.updateMissingBitstreams(); int id = dispatcher.next(); LOG.debug("Processing bitstream id = " + id); while (id != BitstreamDispatcher.SENTINEL) { BitstreamInfo info = checkBitstream(id); if (reportErrorsOnly && (info.getChecksumCheckResult() == ChecksumCheckResults.CHECKSUM_MATCH)) { } else { c...
public void process() { LOG.debug("Begin Checker Processing"); if (dispatcher == null) { throw new IllegalStateException("No BitstreamDispatcher provided"); } if (collector == null) { collector = new ResultsLogger(processStartDate); } ...
int id = dispatcher.next(); while (id != BitstreamDispatcher.SENTINEL) { LOG.debug("Processing bitstream id = " + id); BitstreamInfo info = checkBitstream(id); if (reportVerbose || (info.getChecksumCheckResult() != ChecksumCheckResults.CHECKSUM_MATCH)) { collector.collect(info); } id = dispatcher.next(); }
public void process() { LOG.debug("Begin Checker Processing"); if (dispatcher == null) { throw new IllegalStateException("No BitstreamDispatcher provided"); } if (collector == null) { collector = new ResultsLogger(processStartDate); } ...
editor.applyTextDelta(null);
editor.applyTextDelta(filePath, null);
private static SVNCommitInfo addDir(ISVNEditor editor, String dirPath, String filePath, byte[] data) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until a next entry * (locate...
OutputStream os = editor.textDeltaChunk(diffWindow);
OutputStream os = editor.textDeltaChunk(filePath, diffWindow);
private static SVNCommitInfo addDir(ISVNEditor editor, String dirPath, String filePath, byte[] data) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until a next entry * (locate...
editor.textDeltaEnd();
editor.textDeltaEnd(filePath);
private static SVNCommitInfo addDir(ISVNEditor editor, String dirPath, String filePath, byte[] data) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until a next entry * (locate...
editor.closeFile(null);
editor.closeFile(filePath, null);
private static SVNCommitInfo addDir(ISVNEditor editor, String dirPath, String filePath, byte[] data) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until a next entry * (locate...
editor.applyTextDelta(null);
editor.applyTextDelta(filePath, null);
private static SVNCommitInfo modifyFile(ISVNEditor editor, String dirPath, String filePath, byte[] newData) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until the next entry ...
OutputStream os = editor.textDeltaChunk(diffWindow);
OutputStream os = editor.textDeltaChunk(filePath, diffWindow);
private static SVNCommitInfo modifyFile(ISVNEditor editor, String dirPath, String filePath, byte[] newData) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until the next entry ...
editor.textDeltaEnd();
editor.textDeltaEnd(filePath);
private static SVNCommitInfo modifyFile(ISVNEditor editor, String dirPath, String filePath, byte[] newData) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until the next entry ...
editor.closeFile(null);
editor.closeFile(filePath, null);
private static SVNCommitInfo modifyFile(ISVNEditor editor, String dirPath, String filePath, byte[] newData) throws SVNException { /* * Always called first. Opens the current root directory. It means all * modifications will be applied to this directory until the next entry ...
String sql = GET_CROSS_KEYS;
Clause primaryTableClause = new Clause("PK.RDB$RELATION_NAME", primaryTable); Clause foreignTableClause = new Clause("FK.RDB$RELATION_NAME", foreignTable); String sql = GET_CROSS_KEYS_START; sql += primaryTableClause.getCondition(); sql += foreignTableClause.getCondition(); sql += GET_CROSS_KEYS_END;
public ResultSet getCrossReference( String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable ) throws SQLException { checkCatalogAndSchema(primaryCatalog, primarySchema); checkCatalogAndSchema(foreignCatalog...
params.add(foreignTable.toUpperCase()); params.add(primaryTable.toUpperCase());
if (!primaryTableClause.getCondition().equals("")) { params.add(primaryTableClause.getValue()); } if (!foreignTableClause.getCondition().equals("")) { params.add(foreignTableClause.getValue()); }
public ResultSet getCrossReference( String primaryCatalog, String primarySchema, String primaryTable, String foreignCatalog, String foreignSchema, String foreignTable ) throws SQLException { checkCatalogAndSchema(primaryCatalog, primarySchema); checkCatalogAndSchema(foreignCatalog...
String sql = GET_EXPORTED_KEYS;
Clause tableClause = new Clause("PK.RDB$RELATION_NAME", table); String sql = GET_EXPORTED_KEYS_START; sql += tableClause.getCondition(); sql += GET_EXPORTED_KEYS_END;
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { checkCatalogAndSchema(catalog, schema); String sql = GET_EXPORTED_KEYS; ArrayList params = new ArrayList(); params.add(table.toUpperCase()); ResultSet rs = c.doQuery(...
params.add(table.toUpperCase());
if (!tableClause.getCondition().equals("")) { params.add(tableClause.getValue()); }
public ResultSet getExportedKeys(String catalog, String schema, String table) throws SQLException { checkCatalogAndSchema(catalog, schema); String sql = GET_EXPORTED_KEYS; ArrayList params = new ArrayList(); params.add(table.toUpperCase()); ResultSet rs = c.doQuery(...
*/
public ResultSet getImportedKeys(String catalog, String schema, String table) throws SQLException { checkCatalogAndSchema(catalog, schema); String sql = GET_IMPORTED_KEYS; ArrayList params = new ArrayList(); params.add(table.toUpperCase()); ResultSet rs = c.doQuery(...
*/
public ResultSet getPrimaryKeys(String catalog, String schema, String table) throws SQLException { checkCatalogAndSchema(catalog, schema); String sql = GET_PRIMARY_KEYS; ArrayList params = new ArrayList(); params.add(table); ResultSet rs = c.doQuery(sql, params, sta...
case BCAST: return "DATA";
case BCAST: return "BCAST";
private final String printType() { switch(type) { case FORWARD: return "FORWARD"; case BCAST: return "DATA"; default: return "n/a"; } }