Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
af8630f2
Commit
af8630f2
authored
Jan 18, 2001
by
Peter Mount
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to cvs add UpdateableResultSet.java ;-)
parent
8bc9f001
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
254 additions
and
0 deletions
+254
-0
src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
...rfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
+254
-0
No files found.
src/interfaces/jdbc/org/postgresql/jdbc2/UpdateableResultSet.java
0 → 100644
View file @
af8630f2
package
org.postgresql.jdbc2
;
// IMPORTANT NOTE: This is the begining of supporting updatable ResultSets.
// It is not a working solution (yet)!
//
// You will notice here we really do throw org.postgresql.Driver.notImplemented()
// This is because here we should be updateable, so any unimplemented methods
// must say so.
//
// Also you'll notice that the String columnName based calls are not present.
// They are not required as they are in the super class.
//
import
java.lang.*
;
import
java.io.*
;
import
java.math.*
;
import
java.text.*
;
import
java.util.*
;
import
java.sql.*
;
import
org.postgresql.Field
;
import
org.postgresql.largeobject.*
;
import
org.postgresql.util.*
;
/**
* @see ResultSet
* @see ResultSetMetaData
* @see java.sql.ResultSet
*/
public
class
UpdateableResultSet
extends
org
.
postgresql
.
jdbc2
.
ResultSet
{
/**
* Create a new ResultSet - Note that we create ResultSets to
* represent the results of everything.
*
* @param fields an array of Field objects (basically, the
* ResultSet MetaData)
* @param tuples Vector of the actual data
* @param status the status string returned from the back end
* @param updateCount the number of rows affected by the operation
* @param cursor the positioned update/delete cursor name
*/
public
UpdateableResultSet
(
Connection
conn
,
Field
[]
fields
,
Vector
tuples
,
String
status
,
int
updateCount
,
int
insertOID
)
{
super
(
conn
,
fields
,
tuples
,
status
,
updateCount
,
insertOID
);
}
/**
* Create a new ResultSet - Note that we create ResultSets to
* represent the results of everything.
*
* @param fields an array of Field objects (basically, the
* ResultSet MetaData)
* @param tuples Vector of the actual data
* @param status the status string returned from the back end
* @param updateCount the number of rows affected by the operation
* @param cursor the positioned update/delete cursor name
*/
public
UpdateableResultSet
(
Connection
conn
,
Field
[]
fields
,
Vector
tuples
,
String
status
,
int
updateCount
)
{
super
(
conn
,
fields
,
tuples
,
status
,
updateCount
,
0
);
}
public
void
cancelRowUpdates
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
deleteRow
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
int
getConcurrency
()
throws
SQLException
{
// New in 7.1 - The updateable ResultSet class will now return
// CONCUR_UPDATEABLE.
return
CONCUR_UPDATABLE
;
}
public
void
insertRow
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
moveToCurrentRow
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
moveToInsertRow
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
boolean
rowDeleted
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
//return false; // javac complains about not returning a value!
}
public
boolean
rowInserted
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
//return false; // javac complains about not returning a value!
}
public
boolean
rowUpdated
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
//return false; // javac complains about not returning a value!
}
public
void
updateAsciiStream
(
int
columnIndex
,
java
.
io
.
InputStream
x
,
int
length
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateBigDecimal
(
int
columnIndex
,
java
.
math
.
BigDecimal
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateBinaryStream
(
int
columnIndex
,
java
.
io
.
InputStream
x
,
int
length
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateBoolean
(
int
columnIndex
,
boolean
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateByte
(
int
columnIndex
,
byte
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateBytes
(
int
columnIndex
,
byte
[]
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateCharacterStream
(
int
columnIndex
,
java
.
io
.
Reader
x
,
int
length
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateDate
(
int
columnIndex
,
java
.
sql
.
Date
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateDouble
(
int
columnIndex
,
double
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateFloat
(
int
columnIndex
,
float
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateInt
(
int
columnIndex
,
int
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateLong
(
int
columnIndex
,
long
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateNull
(
int
columnIndex
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateObject
(
int
columnIndex
,
Object
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateObject
(
int
columnIndex
,
Object
x
,
int
scale
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateRow
()
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateShort
(
int
columnIndex
,
short
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateString
(
int
columnIndex
,
String
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateTime
(
int
columnIndex
,
Time
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
public
void
updateTimestamp
(
int
columnIndex
,
Timestamp
x
)
throws
SQLException
{
// only sub-classes implement CONCUR_UPDATEABLE
throw
org
.
postgresql
.
Driver
.
notImplemented
();
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment