Whitespace and formatting cleanups.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@651 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -470,7 +470,6 @@ public class Table {
|
|||||||
return nDeleted;
|
return nDeleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/** Delete records with specified primary keys from the table.
|
/** Delete records with specified primary keys from the table.
|
||||||
*
|
*
|
||||||
* @param objects array of objects containing values of primary key.
|
* @param objects array of objects containing values of primary key.
|
||||||
@@ -652,7 +651,6 @@ public class Table {
|
|||||||
insertIntoTableHierarchy();
|
insertIntoTableHierarchy();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private final void insertIntoTableHierarchy()
|
private final void insertIntoTableHierarchy()
|
||||||
{
|
{
|
||||||
Table t, prev = null;
|
Table t, prev = null;
|
||||||
@@ -903,7 +901,6 @@ public class Table {
|
|||||||
bindQueryVariables(pstmt, obj, 0, nFields, 0);
|
bindQueryVariables(pstmt, obj, 0, nFields, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected final void updateVariables(ResultSet result, Object obj)
|
protected final void updateVariables(ResultSet result, Object obj)
|
||||||
throws SQLException
|
throws SQLException
|
||||||
{
|
{
|
||||||
@@ -911,7 +908,6 @@ public class Table {
|
|||||||
result.updateRow();
|
result.updateRow();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected final String buildQueryList(Object qbe)
|
protected final String buildQueryList(Object qbe)
|
||||||
{
|
{
|
||||||
StringBuffer buf = new StringBuffer();
|
StringBuffer buf = new StringBuffer();
|
||||||
@@ -922,7 +918,6 @@ public class Table {
|
|||||||
return "select " + listOfFields + " from " + name + buf;
|
return "select " + listOfFields + " from " + name + buf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private final int bindUpdateVariables(PreparedStatement pstmt, Object obj,
|
private final int bindUpdateVariables(PreparedStatement pstmt, Object obj,
|
||||||
int i, int end, int column)
|
int i, int end, int column)
|
||||||
throws SQLException
|
throws SQLException
|
||||||
@@ -942,8 +937,9 @@ public class Table {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
pstmt.setNull(++column,
|
pstmt.setNull(
|
||||||
FieldDescriptor.sqlTypeMapping[fd.outType]);
|
++column,
|
||||||
|
FieldDescriptor.sqlTypeMapping[fd.outType]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!fd.bindVariable(pstmt, obj, ++column)) {
|
if (!fd.bindVariable(pstmt, obj, ++column)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user