com.hardcode.gdbms.engine.data.db
Class DBDataSourceSupport
java.lang.Object
com.hardcode.gdbms.engine.data.db.DBDataSourceSupport
- Direct Known Subclasses:
- SpatialDBDataSourceSupport
public class DBDataSourceSupport
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ocCounter
protected OpenCloseCounter ocCounter
driver
protected DBDriver driver
con
protected java.sql.Connection con
def
protected DBSource def
ds
protected DataSource ds
DBDataSourceSupport
public DBDataSourceSupport(DataSource ds,
DBSource def,
DBDriver driver)
start
public boolean start()
throws DriverException
- Throws:
DriverException
stop
public void stop()
throws DriverException
- Throws:
DriverException
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- Get's a connection to the driver
- Returns:
- Connection
- Throws:
java.sql.SQLException
- if the connection cannot be established
getOriginalFieldValue
public Value getOriginalFieldValue(long rowIndex,
int fieldId)
throws DriverException
- Throws:
DriverException
getOriginalRowCount
public long getOriginalRowCount()
throws DriverException
- Throws:
DriverException
execute
public void execute(java.lang.String sql)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
getPKValue
public ValueCollection getPKValue(long rowIndex)
throws DriverException
- Gets the value of the primary key just before the beginTrans call
- Parameters:
rowIndex
- Index of the row
- Returns:
-
- Throws:
DriverException
getPrimaryKeys
public int[] getPrimaryKeys()
throws DriverException
- Throws:
DriverException
- See Also:
com.hardcode.gdbms.engine.data.DataSource#getPrimaryKeys()
getPKName
public java.lang.String getPKName(int fieldId)
throws DriverException
- Throws:
DriverException
getPKCardinality
public int getPKCardinality()
throws DriverException
- Throws:
DriverException
getPKNames
public java.lang.String[] getPKNames()
throws DriverException
- Throws:
DriverException
getDataSourceMetadata
public Metadata getDataSourceMetadata()
throws DriverException
- Throws:
DriverException
saveData
public void saveData(DataSource dataSource)
throws DriverException
- Throws:
DriverException
getDriverMetadata
public DriverMetadata getDriverMetadata()
throws DriverException
- Throws:
DriverException
check
public java.lang.String check(Field field,
Value value)
throws DriverException
- Throws:
DriverException
getDriver
public DBDriver getDriver()
Copyright © 2005-2006 . All Rights Reserved.