code
stringlengths
1
2.01M
repo_name
stringlengths
3
62
path
stringlengths
1
267
language
stringclasses
231 values
license
stringclasses
13 values
size
int64
1
2.01M
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/executor/BashCallableCommand.groovy
Groovy
bsd
3,211
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/executor/GridgainProvider.groovy
Groovy
bsd
3,331
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/executor/ProbeCommandExecutor.java
Java
bsd
2,029
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, ...
zxd06407-bpipe
src/main/groovy/bpipe/executor/TorqueCommandExecutor.groovy
Groovy
bsd
3,339
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/executor/GridgainCommandExecutor.groovy
Groovy
bsd
3,826
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/executor/ExecutorServiceProvider.groovy
Groovy
bsd
1,699
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/executor/HazelcastCommandExecutor.groovy
Groovy
bsd
4,128
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/executor/LsfCommandExecutor.groovy
Groovy
bsd
9,517
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/executor/BashResult.groovy
Groovy
bsd
1,932
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, ...
zxd06407-bpipe
src/main/groovy/bpipe/Forwarder.groovy
Groovy
bsd
4,073
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/ToolDatabase.groovy
Groovy
bsd
6,393
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/PipelineContext.groovy
Groovy
bsd
63,885
/* * Copyright (c) 2013 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/FastUtils.java
Java
bsd
2,295
package bpipe import groovy.util.ConfigObject; import groovy.util.logging.Log; /** * Global configuration properties for Bpipe. * * @author simon.sadedin@mcri.edu.au */ @Log class Config { /** * Lower level configuration values. These are not directly user * exposed. */ static Map<String,Objec...
zxd06407-bpipe
src/main/groovy/bpipe/Config.groovy
Groovy
bsd
4,149
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/SMTPNotificationChannel.groovy
Groovy
bsd
3,798
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/ParameterizedClosure.groovy
Groovy
bsd
2,331
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/NotificationManager.groovy
Groovy
bsd
6,405
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, ...
zxd06407-bpipe
src/main/groovy/bpipe/ForwardHost.groovy
Groovy
bsd
1,794
package bpipe; /** * Possible values for Jobs that Bpipe is running * * @author simon.sadedin@mcri.edu.au */ public enum CommandStatus { QUEUEING, RUNNING, COMPLETE, UNKNOWN }
zxd06407-bpipe
src/main/groovy/bpipe/CommandStatus.java
Java
bsd
200
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/Pipeline.groovy
Groovy
bsd
27,681
/* * Copyright (c) 2011 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/CommandId.groovy
Groovy
bsd
2,521
package bpipe import groovy.lang.IntRange import java.io.Serializable; /** * Extends the normal Integer Range class to make it serializable */ class GenomicRange implements Serializable { private static final long serialVersionUID = 1L; int from int to /** ...
zxd06407-bpipe
src/main/groovy/bpipe/GenomicRange.groovy
Groovy
bsd
716
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
zxd06407-bpipe
src/main/groovy/bpipe/Runner.groovy
Groovy
bsd
23,720
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
zxd06407-bpipe
src/main/groovy/bpipe/Dependencies.groovy
Groovy
bsd
33,794
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
zxd06407-bpipe
src/main/groovy/bpipe/PipelineOutput.groovy
Groovy
bsd
9,580
package bpipe import groovy.util.logging.Log; import java.util.regex.Matcher; /** * Implements logic for splitting input files into groups by sample using simple * wildcard patterns. The goal is to provide a simpler way for people to specify * how file names are related to sample names than asking people to eithe...
zxd06407-bpipe
src/main/groovy/bpipe/InputSplitter.groovy
Groovy
bsd
7,947
package bpipe import groovy.util.logging.Log; @Log class CommandLog { static FileWriter writer = new FileWriter("commandlog.txt", true) static CommandLog cmdLog = new CommandLog() /** * Write a line to the command log. */ synchronized void write(String line) { writer.p...
zxd06407-bpipe
src/main/groovy/bpipe/CommandLog.groovy
Groovy
bsd
429
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/DefinePipelineCategory.groovy
Groovy
bsd
5,236
package bpipe; import java.util.Map; public interface PipelineEventListener { void onEvent(PipelineEvent eventType, String desc, Map<String, Object> details); }
zxd06407-bpipe
src/main/groovy/bpipe/PipelineEventListener.java
Java
bsd
176
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/EventManager.groovy
Groovy
bsd
3,111
/* * Copyright (c) 2012 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, pu...
zxd06407-bpipe
src/main/groovy/bpipe/XMPPNotificationChannel.groovy
Groovy
bsd
4,491
package bpipe; /** * Events that can occur during execution of a pipeline. * Used by NotificationChannel to allow notifications to appear * for particular events. * * @author ssadedin */ public enum PipelineEvent { /** * Supported */ STARTED, /** * Supported */ FINISHED, /**...
zxd06407-bpipe
src/main/groovy/bpipe/PipelineEvent.java
Java
bsd
666
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/ast/BpipeProduceASTTransformation.groovy
Groovy
bsd
1,802
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/ast/BpipePreserveASTTransformation.groovy
Groovy
bsd
2,250
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/ast/BpipeIntermediateASTTransformation.groovy
Groovy
bsd
2,262
package bpipe.ast import org.codehaus.groovy.control.CompilePhase; import org.codehaus.groovy.transform.GroovyASTTransformation; @GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS) class BpipeFilterASTTransformation extends BpipeASTTransformation { public BpipeFilterASTTransformation() { ...
zxd06407-bpipe
src/main/groovy/bpipe/ast/BpipeFilterASTTransformation.groovy
Groovy
bsd
346
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/bpipe/ast/BpipeAccompaniesASTTransformation.groovy
Groovy
bsd
2,449
package bpipe.ast import org.codehaus.groovy.ast.ASTNode; import org.codehaus.groovy.ast.AnnotationNode; import org.codehaus.groovy.ast.ClassHelper; import org.codehaus.groovy.ast.ClassNode; import org.codehaus.groovy.ast.Parameter; import org.codehaus.groovy.ast.VariableScope; import org.codehaus.groovy.ast.builder.As...
zxd06407-bpipe
src/main/groovy/bpipe/ast/BpipeASTTransformation.groovy
Groovy
bsd
9,454
package bpipe.ast import org.codehaus.groovy.control.CompilePhase; import org.codehaus.groovy.transform.GroovyASTTransformation; @GroovyASTTransformation(phase = CompilePhase.SEMANTIC_ANALYSIS) class BpipeTransformASTTransformation extends BpipeASTTransformation { public BpipeTransformASTTransformation() { ...
zxd06407-bpipe
src/main/groovy/bpipe/ast/BpipeTransformASTTransformation.groovy
Groovy
bsd
354
package bpipe.ast import groovy.util.logging.Log; import org.codehaus.groovy.ast.ASTNode; import org.codehaus.groovy.ast.expr.BinaryExpression; import org.codehaus.groovy.ast.expr.ClosureExpression; import org.codehaus.groovy.ast.expr.PropertyExpression; import org.codehaus.groovy.ast.stmt.BlockStatement; import org....
zxd06407-bpipe
src/main/groovy/bpipe/ast/ASTDumper.groovy
Groovy
bsd
1,007
/* * Copyright (c) 2011 MCRI, authors * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, * copy, modify, merge, publish, ...
zxd06407-bpipe
src/main/groovy/bpipe/PatternInputMissingError.groovy
Groovy
bsd
1,636
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright...
zxd06407-bpipe
src/main/groovy/bpipe/PipelineTestAbort.java
Java
bsd
1,875
package bpipe import java.util.zip.GZIPInputStream; import groovy.util.logging.Log; @Log class RegionSet implements Serializable { private static final long serialVersionUID = 1L; /** * Optional configuration object - this is not used in RegionSet, however * it's used in Chr ...
zxd06407-bpipe
src/main/groovy/bpipe/RegionSet.groovy
Groovy
bsd
10,468
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.codehaus.groovy.transform.GroovyASTTransformationClass; /** * Annotation to indicate that a pipeline stage transforms an input * to a file type ...
zxd06407-bpipe
src/main/groovy/Filter.groovy
Groovy
bsd
540
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/Intermediate.groovy
Groovy
bsd
1,972
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/Accompanies.groovy
Groovy
bsd
1,970
import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.codehaus.groovy.transform.GroovyASTTransformationClass; /** * Annotation to indicate that a pipeline stage transforms an input * to a file type ...
zxd06407-bpipe
src/main/groovy/Transform.groovy
Groovy
bsd
546
import bpipe.Pipeline; /** * A simple alias for Pipeline, in the default package so that the user * does not need to import anything to access Bpipe * * @author simon */ class Bpipe extends Pipeline { }
zxd06407-bpipe
src/main/groovy/Bpipe.groovy
Groovy
bsd
215
/* * Copyright (c) Murdoch Childrens Research Institute and Contributers * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright n...
zxd06407-bpipe
src/main/groovy/Produce.groovy
Groovy
bsd
1,931
// // ----------- Example: Paired End Alignment // // Illustrates how to align paired end reads from eg. Illumina // using BWA. // // Notes: // // 1. to run this example you need a human reference genome // downloaded and indexed in ~/hg19/gatk.ucsc.hg19.fasta" // or you can change the reference below to point t...
zxd06407-bpipe
examples/paired_end_alignment/pipeline.groovy
Groovy
bsd
1,939
package y.p.newpro; import android.app.Activity; import android.os.Bundle; public class NewproActivity extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layou...
zzangmomo
newpro/src/y/p/newpro/NewproActivity.java
Java
asf20
336
package cn.nju.zyy.service; import java.util.List; import cn.nju.zyy.domain.Community; import cn.nju.zyy.domain.Country; import cn.nju.zyy.domain.User; public interface UserService { public void add(User user); public List<Country> getAllCountries(); public List<Community> getAllCommunities(); } ...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/service/UserService.java
Java
asf20
321
package cn.nju.zyy.service; import java.util.ArrayList; import java.util.List; import cn.nju.zyy.domain.Community; import cn.nju.zyy.domain.Country; import cn.nju.zyy.domain.User; public class UserServiceImpl implements UserService { @Override public void add(User user) { // Persist the user object...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/service/UserServiceImpl.java
Java
asf20
988
package cn.nju.zyy.domain; public class Community { private String key; private String value; public Community(String key, String value) { this.key = key; this.value = value; } public String getKey() { return key; } public void setKey(String key) { this.key = key; } public S...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/domain/Community.java
Java
asf20
434
package cn.nju.zyy.domain; public class Country { private int countryId; private String countryName; public Country(int countryId, String countryName) { this.countryId = countryId; this.countryName = countryName; } public int getCountryId() { return countryId; } public void setCountr...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/domain/Country.java
Java
asf20
538
package cn.nju.zyy.dao; import java.util.List; import org.hibernate.SessionFactory; import org.springframework.orm.hibernate3.HibernateTemplate; import cn.nju.zyy.domain.User; public class UserDAOImpl implements UserDAO { private HibernateTemplate hibernateTemplate; public void setSessionFactory(...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/dao/UserDAOImpl.java
Java
asf20
656
package cn.nju.zyy.dao; import java.util.List; import cn.nju.zyy.domain.User; public interface UserDAO { public void saveUser(User user); public List<User> listUser(); }
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/dao/UserDAO.java
Java
asf20
190
package cn.nju.zyy.interceptor; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.log4j.BasicConfigurator; import org.apache.log4j.Logger; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.handler.HandlerInt...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/interceptor/LoggerInterceptor.java
Java
asf20
1,486
package cn.nju.zyy.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.AbstractController; public class HelloWorldController extends AbstractController { p...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/controller/HelloWorldController.java
Java
asf20
641
package cn.nju.zyy.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.ui.ModelMap; import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.mvc.multiaction.MultiActionController; import cn.nju...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/controller/UserController.java
Java
asf20
2,127
package cn.nju.zyy.validator; import org.springframework.validation.Errors; import org.springframework.validation.ValidationUtils; import org.springframework.validation.Validator; import cn.nju.zyy.domain.User; public class UserValidator implements Validator { @Override public boolean supports(Class<?>...
zyy-spring-mvc-xml
trunk/src/cn/nju/zyy/validator/UserValidator.java
Java
asf20
1,031
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Welcome Page</title> </head> ...
zyy-spring-mvc-xml
trunk/WebContent/WEB-INF/jsp/welcomePage.jsp
Java Server Pages
asf20
373
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="...
zyy-spring-mvc-xml
trunk/WebContent/WEB-INF/jsp/userSuccess.jsp
Java Server Pages
asf20
1,125
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Item</title> </head> <body> ...
zyy-spring-mvc-xml
trunk/WebContent/WEB-INF/jsp/item.jsp
Java Server Pages
asf20
358
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> <!DOCTYPE html...
zyy-spring-mvc-xml
trunk/WebContent/WEB-INF/jsp/userForm.jsp
Java Server Pages
asf20
2,809
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Redirect</title> </head> <bod...
zyy-spring-mvc-xml
trunk/WebContent/redirect.jsp
Java Server Pages
asf20
433
package cn.nju.zyy.auction; public class Address { }
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/auction/Address.java
Java
asf20
60
package cn.nju.zyy.auction; import java.util.Collections; import java.util.HashSet; import java.util.Set; public class Category { private Long id; private String name; private Category parentCategory; private Set childCategories = new HashSet(); private Set items = new HashSet(); public Long get...
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/auction/Category.java
Java
asf20
1,425
package cn.nju.zyy.auction; import java.io.Serializable; public class User implements Serializable { private static final long serialVersionUID = 1L; private String username; private Address address; public User() { } public String getUsername() { return username; } public void setUse...
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/auction/User.java
Java
asf20
608
@org.hibernate.annotations.TypeDefs({ @org.hibernate.annotations.TypeDef( name = "monetary_amount_usd", typeClass = MonetaryAmountType.class, parameters = { @org.hibernate.annotations.Parameter(name="convertTo", value="USD") } ), @org.hibernate.annotations.TypeDef( name = "monetary_amou...
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/auction/package-info.java
Java
asf20
696
package cn.nju.zyy.auction; import java.util.Collections; import java.util.HashSet; import java.util.Set; import javax.persistence.Entity; import javax.persistence.Table; @Entity @Table(name = "ITEM") @org.hibernate.annotations.BatchSize(size = 10) @org.hibernate.annotations.DiscriminatorFormula("case wh...
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/auction/Item.java
Java
asf20
1,159
package cn.nju.zyy.auction; public class MonetaryAmountType { }
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/auction/MonetaryAmountType.java
Java
asf20
71
package cn.nju.zyy.hello; import java.util.Iterator; import java.util.List; import javax.persistence.EntityManager; import org.hibernate.Session; import org.hibernate.Transaction; import org.hibernate.ejb.HibernateEntityManager; import cn.nju.zyy.persistence.JPAUtil; public class HibernateStyleHelloWo...
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/hello/HibernateStyleHelloWorld.java
Java
asf20
1,099
package cn.nju.zyy.hello; import java.util.Iterator; import java.util.List; import javax.persistence.EntityManager; import javax.persistence.EntityTransaction; import cn.nju.zyy.persistence.JPAUtil; public class HelloWorld { public static void main(String[] args) { // First unit of work EntityMa...
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/hello/HelloWorld.java
Java
asf20
1,249
package cn.nju.zyy.persistence; import javax.persistence.EntityManagerFactory; import javax.persistence.Persistence; import org.hibernate.ejb.Ejb3Configuration; public class JPAUtil { private static final EntityManagerFactory emf; static { try { emf = Persistence.createEntityManagerFactory("he...
zyy-hibernate-jpa-demo
trunk/src/cn/nju/zyy/persistence/JPAUtil.java
Java
asf20
632
/* * Copyright 2002-2011 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by ap...
zyy-test-test
trunk/zyy/src/org/springframework/http/converter/StringHttpMessageConverter.java
Java
asf20
3,804
package com.chiao.service.admin; import com.chiao.dao.admin.EmployeeDao; import com.chiao.entity.admin.Employee; import java.util.List; import java.util.Map; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service public class EmployeeService { ...
zyy-test-test
trunk/zyy/src/com/chiao/service/admin/EmployeeService.java
Java
asf20
1,263
package com.chiao.service.admin; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.chiao.dao.admin.RoleDao; import com.chiao.entity.admin.Role; @Service public class RoleService { @Autowired RoleDao roleDao;...
zyy-test-test
trunk/zyy/src/com/chiao/service/admin/RoleService.java
Java
asf20
609
package com.chiao.service.admin; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.chiao.dao.admin.LoginDao; import com.chiao.entity.admin.Action; @Service public class LoginService { @Autowired LoginDao d...
zyy-test-test
trunk/zyy/src/com/chiao/service/admin/LoginService.java
Java
asf20
660
package com.chiao.service.admin; import java.util.HashMap; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Set; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.chiao.core.ExtNode; import com....
zyy-test-test
trunk/zyy/src/com/chiao/service/admin/DeptService.java
Java
asf20
1,817
package com.chiao.service.core; import java.util.HashMap; import java.util.Map; import javax.mail.MessagingException; import javax.mail.internet.MimeMessage; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.core.task.TaskExecutor; import org.springframework.mail.jav...
zyy-test-test
trunk/zyy/src/com/chiao/service/core/MailService.java
Java
asf20
2,504
package com.chiao.entity.admin; import java.util.List; public class ExtGrid<T> { private boolean success; private List<T> items; public boolean isSuccess() { return success; } public void setSuccess(boolean success) { this.success = success; } public List<T> getItems() { return items; ...
zyy-test-test
trunk/zyy/src/com/chiao/entity/admin/ExtGrid.java
Java
asf20
404
package com.chiao.entity.admin; public class Role { private int roleid; private String rolename; private String roledesc; private int sortno; public int getRoleid() { return roleid; } public void setRoleid(int roleid) { this.roleid = roleid; } public String getRolename() { return role...
zyy-test-test
trunk/zyy/src/com/chiao/entity/admin/Role.java
Java
asf20
668
package com.chiao.entity.admin; public class Action { private int id; private int nodeid; private String opt; private String arg; private int delay; private int enable; private int profilesid; private int visibility; public int getId() { return id; } public void setId(int id) { ...
zyy-test-test
trunk/zyy/src/com/chiao/entity/admin/Action.java
Java
asf20
1,204
package com.chiao.entity.admin; public class DDNS { private String userName; private String passWord; private String domain; public String getUserName() { return userName; } public void setUserName(String userName) { this.userName = userName; } public String getPassWord() { return ...
zyy-test-test
trunk/zyy/src/com/chiao/entity/admin/DDNS.java
Java
asf20
546
package com.chiao.entity.admin; public class Employee { private int empid; private String empno; private String empname; private String emppass; private int sex; private String tel; private String idcard; private String birthday; private String address; private String headpic; private boolean...
zyy-test-test
trunk/zyy/src/com/chiao/entity/admin/Employee.java
Java
asf20
2,042
package com.chiao.entity.admin; public class Dept { private int deptid; private int pid; private int sortno; private String deptname; private String pname; public int getDeptid() { return deptid; } public void setDeptid(int deptid) { this.deptid = deptid; } public int getPid() { ...
zyy-test-test
trunk/zyy/src/com/chiao/entity/admin/Dept.java
Java
asf20
780
package com.chiao.entity; public class Member { private String name; private String email; public String getName() { return name; } public void setName(String name) { this.name = name; } public String getEmail() { return email; } public void setEmail(String email) { t...
zyy-test-test
trunk/zyy/src/com/chiao/entity/Member.java
Java
asf20
353
package com.chiao.dao.admin; import java.util.List; import org.springframework.stereotype.Repository; import com.chiao.core.BaseDao; import com.chiao.entity.admin.Role; @Repository public class RoleDao extends BaseDao{ private static final String LIST_ROLE_SQL="select * from role order by sortno"; ...
zyy-test-test
trunk/zyy/src/com/chiao/dao/admin/RoleDao.java
Java
asf20
1,065
package com.chiao.dao.admin; import java.util.List; import java.util.Map; import org.springframework.stereotype.Repository; import com.chiao.core.BaseDao; import com.chiao.core.CommonUtils; import com.chiao.entity.admin.Employee; @Repository public class EmployeeDao extends BaseDao{ private static f...
zyy-test-test
trunk/zyy/src/com/chiao/dao/admin/EmployeeDao.java
Java
asf20
3,376
package com.chiao.dao.admin; import java.util.List; import java.util.Map; import org.springframework.stereotype.Repository; import com.chiao.core.BaseDao; import com.chiao.entity.admin.Dept; @Repository public class DeptDao extends BaseDao{ private static final String LIST_DEPT_SQL="SELECT * FROM DEP...
zyy-test-test
trunk/zyy/src/com/chiao/dao/admin/DeptDao.java
Java
asf20
1,571
package com.chiao.dao.admin; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.BeanPropertyRowMapper; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import com.chiao.core.BaseDao; ...
zyy-test-test
trunk/zyy/src/com/chiao/dao/admin/LoginDao.java
Java
asf20
1,142
package com.chiao.dao.admin; import org.springframework.stereotype.Repository; import com.chiao.core.BaseDao; @Repository public class TestDao extends BaseDao { public String getJson(){ return this.getJsonList("select * from dept").toString(); } }
zyy-test-test
trunk/zyy/src/com/chiao/dao/admin/TestDao.java
Java
asf20
272
package com.chiao.core; import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; import java.util.Iterator; import java.util.List; public class ExtNode { /** * 节点编号 */ private Integer id; /** * 节点内容 */ private String text; /** * 父节点编号 */ private Inte...
zyy-test-test
trunk/zyy/src/com/chiao/core/ExtNode.java
Java
asf20
2,243
package com.chiao.core; import java.util.List; import java.util.Map; public class ExtPageStore { private int total; private List<Map<String,Object>> items; public int getTotal() { return total; } public void setTotal(int total) { this.total = total; } public List<Map<String, Object>> ge...
zyy-test-test
trunk/zyy/src/com/chiao/core/ExtPageStore.java
Java
asf20
446
package com.chiao.core; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.dao.DataAccessException; import org.springframewor...
zyy-test-test
trunk/zyy/src/com/chiao/core/BaseController.java
Java
asf20
3,124
package com.chiao.core; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.text.DecimalFormat; import java.text.SimpleDateFormat; im...
zyy-test-test
trunk/zyy/src/com/chiao/core/CommonUtils.java
Java
asf20
10,239
package com.chiao.core; import javax.annotation.PostConstruct; import javax.sql.DataSource; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Qualifier; import org.springframework.jdbc.core.support.JdbcDaoSupport; public abstract class AbsBase...
zyy-test-test
trunk/zyy/src/com/chiao/core/AbsBaseDao.java
Java
asf20
512
package com.chiao.core; import java.sql.Connection; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.ResultSetMetaData; import java.sql.SQLException; import java.util.List; import java.util.Map; import net.sf.json.JSONArray; import net.sf.json.JSONObject; import org.springfr...
zyy-test-test
trunk/zyy/src/com/chiao/core/BaseDao.java
Java
asf20
6,849
package com.chiao.core; import java.beans.PropertyEditorSupport; import org.springframework.util.StringUtils; public class IntEditor extends PropertyEditorSupport { @Override public String getAsText() { return getValue().toString(); } @Override public void setAsText(String text) throws Illegal...
zyy-test-test
trunk/zyy/src/com/chiao/core/IntEditor.java
Java
asf20
518