|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
com.sun.jdo.spi.persistence.generator.database.DatabaseOutputStream
public class DatabaseOutputStream
| Constructor Summary | |
|---|---|
DatabaseOutputStream()
|
|
DatabaseOutputStream(java.sql.Connection conn)
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the database connection. |
void |
flush()
Commits the database connection. |
void |
setConnection(java.sql.Connection conn)
|
void |
write(int b)
This method is not supported in DatabaseOutputStream because it doesn't make sense to write a single int to a database stream. |
void |
write(java.lang.String stmt)
Executes the given statement in the database. |
| Methods inherited from class java.io.OutputStream |
|---|
write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatabaseOutputStream(java.sql.Connection conn)
public DatabaseOutputStream()
| Method Detail |
|---|
public void close()
close in interface java.io.Closeableclose in class java.io.OutputStreampublic void flush()
flush in interface java.io.Flushableflush in class java.io.OutputStreampublic void write(int b)
write in class java.io.OutputStreamjava.lang.UnsupportedOperationException
public void write(java.lang.String stmt)
throws java.sql.SQLException
stmt - SQL to be executed
java.sql.SQLException - Thrown if there is a problem preparing stmt as a
statement, or in executing it.public void setConnection(java.sql.Connection conn)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||