2.17.2: 2011-06-17

net.sf.basedb.core.hibernate
Class TableInfoWork

java.lang.Object
  extended by net.sf.basedb.core.hibernate.TableInfoWork
All Implemented Interfaces:
JdbcWork<TableInfo>, org.hibernate.jdbc.Work

public class TableInfoWork
extends Object
implements JdbcWork<TableInfo>

A work implementation that loads database metadata for a table and returns it as a TableInfo object.

Version:
2.9
Author:
nicklas
Last modified
$Date: 2008-09-11 22:11:02 +0200 (Thu, 11 Sep 2008) $

Field Summary
private  TableInfo info
           
private  org.hibernate.mapping.Table table
           
 
Constructor Summary
TableInfoWork(org.hibernate.mapping.Table table)
          Create a new work item.
 
Method Summary
 void execute(Connection connection)
          From the Work interface -----------------------
 TableInfo getResult()
          Get the result of the work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

table

private final org.hibernate.mapping.Table table

info

private TableInfo info
Constructor Detail

TableInfoWork

public TableInfoWork(org.hibernate.mapping.Table table)
Create a new work item.

Parameters:
table - The table to get metadata information about
Method Detail

execute

public void execute(Connection connection)
             throws SQLException
From the Work interface -----------------------

Specified by:
execute in interface org.hibernate.jdbc.Work
Throws:
SQLException

getResult

public TableInfo getResult()
Description copied from interface: JdbcWork
Get the result of the work.

Specified by:
getResult in interface JdbcWork<TableInfo>

2.17.2: 2011-06-17