Skip to content

Commit

Permalink
update copyright headers, add support for DML, add attach() for build…
Browse files Browse the repository at this point in the history
…ing sql object from already open handle
  • Loading branch information
brianm committed Feb 17, 2011
1 parent 9edd722 commit 067ca9f
Show file tree
Hide file tree
Showing 143 changed files with 1,082 additions and 275 deletions.
3 changes: 2 additions & 1 deletion CONTRIBUTORS
@@ -1,11 +1,12 @@
Contributors:
Brian McCallister
Martin Traverso
Henning Schmiedehausen
Henning Schmiedehausen
Jax Law
maniax for finding a nasty bug in named parameter substitution
Robert Sfeir for batch processing feature requests
Henry Yandell for in clause expansion feature request
Patrick Burleson for showing that DBIException should extend RuntimeException
Thomas Risberg for the Spring DataAccessException wrapping code
Simone Gianni for finding (and finding the fix for) a nasty setNull bug
Thomas Dudziak
4 changes: 1 addition & 3 deletions NOTICE
@@ -1,3 +1 @@
This product includes software developed by Brian McCallister

This product includes
This product includes software developed by Brian McCallister
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BaseResultSetMapper.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BasicHandle.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/Batch.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BeanMapper.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BeanPropertyArguments.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BigDecimalArgument.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/Binding.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BlobArgument.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BooleanArgument.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
20 changes: 18 additions & 2 deletions src/main/java/org/skife/jdbi/v2/BooleanIntegerArgument.java
@@ -1,3 +1,19 @@
/*
* Copyright 2004 - 2011 Brian McCallister
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.skife.jdbi.v2;

import java.sql.PreparedStatement;
Expand All @@ -7,7 +23,7 @@
import org.skife.jdbi.v2.tweak.Argument;

/**
* Takes a boolean and converts it into integer 0/1 column values. This is useful if your database does
* Takes a boolean and converts it into integer 0/1 column values. This is useful if your database does
* not support boolean column types.
*/
class BooleanIntegerArgument implements Argument
Expand All @@ -19,7 +35,7 @@ class BooleanIntegerArgument implements Argument
this.value = value;
}

public void apply(final int position, final PreparedStatement statement, final StatementContext ctx) throws SQLException
public void apply(final int position, final PreparedStatement statement, final StatementContext ctx) throws SQLException
{
statement.setInt(position, value ? 1 : 0);
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/ByteArgument.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/ByteArrayArgument.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/CachingStatementBuilder.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/org/skife/jdbi/v2/Call.java
@@ -1,3 +1,19 @@
/*
* Copyright 2004 - 2011 Brian McCallister
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.skife.jdbi.v2;

import org.skife.jdbi.v2.tweak.Argument;
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/org/skife/jdbi/v2/CallableStatementMapper.java
@@ -1,3 +1,19 @@
/*
* Copyright 2004 - 2011 Brian McCallister
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.skife.jdbi.v2;

import java.sql.CallableStatement;
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/org/skife/jdbi/v2/CharacterArgument.java
@@ -1,3 +1,19 @@
/*
* Copyright 2004 - 2011 Brian McCallister
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

package org.skife.jdbi.v2;

import org.skife.jdbi.v2.tweak.Argument;
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/CharacterStreamArgument.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/ClobArgument.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/DBI.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/org/skife/jdbi/v2/DefaultMapper.java
@@ -1,11 +1,11 @@
/*
* Copyright 2004-2007 Brian McCallister
* Copyright 2004 - 2011 Brian McCallister
*
* 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
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
Expand Down

0 comments on commit 067ca9f

Please sign in to comment.