mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
JDBC indenting, comment cleanups.
This commit is contained in:
@ -9,7 +9,7 @@ import java.sql.*;
|
||||
|
||||
import org.postgresql.util.PSQLException;
|
||||
|
||||
/**
|
||||
/*
|
||||
* A Statement object is used for executing a static SQL statement and
|
||||
* obtaining the results produced by it.
|
||||
*
|
||||
@ -26,7 +26,7 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
|
||||
{
|
||||
private Connection connection; // The connection who created us
|
||||
|
||||
/**
|
||||
/*
|
||||
* Constructor for a Statement. It simply sets the connection
|
||||
* that created us.
|
||||
*
|
||||
@ -37,7 +37,7 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
|
||||
connection = c;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Execute a SQL statement that retruns a single ResultSet
|
||||
*
|
||||
* @param sql typically a static SQL SELECT statement
|
||||
@ -54,7 +54,7 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Execute a SQL INSERT, UPDATE or DELETE statement. In addition
|
||||
* SQL statements that return nothing such as SQL DDL statements
|
||||
* can be executed
|
||||
@ -71,7 +71,7 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
|
||||
return this.getUpdateCount();
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* setCursorName defines the SQL cursor name that will be used by
|
||||
* subsequent execute methods. This name can then be used in SQL
|
||||
* positioned update/delete statements to identify the current row
|
||||
@ -95,7 +95,7 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
|
||||
connection.setCursorName(name);
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* Execute a SQL statement that may return multiple results. We
|
||||
* don't have to worry about this since we do not support multiple
|
||||
* ResultSets. You can use getResultSet or getUpdateCount to
|
||||
@ -114,7 +114,7 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
|
||||
return (result != null && ((org.postgresql.ResultSet)result).reallyResultSet());
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* getUpdateCount returns the current result as an update count,
|
||||
* if the result is a ResultSet or there are no more results, -1
|
||||
* is returned. It should only be called once per result.
|
||||
@ -131,7 +131,7 @@ public class Statement extends org.postgresql.Statement implements java.sql.Stat
|
||||
return ((org.postgresql.ResultSet)result).getResultCount();
|
||||
}
|
||||
|
||||
/**
|
||||
/*
|
||||
* getMoreResults moves to a Statement's next result. If it returns
|
||||
* true, this result is a ResulSet.
|
||||
*
|
||||
|
Reference in New Issue
Block a user