org.h2.engine
Class MetaRecord

java.lang.Object
  extended by org.h2.engine.MetaRecord
All Implemented Interfaces:
java.lang.Comparable<MetaRecord>

public class MetaRecord
extends java.lang.Object
implements java.lang.Comparable<MetaRecord>

A record in the system table of the database. It contains the SQL statement to create the database object.


Constructor Summary
MetaRecord(SearchRow r)
           
 
Method Summary
 int compareTo(MetaRecord other)
          Sort the list of meta records by 'create order'.
 int getId()
           
 int getObjectType()
           
 java.lang.String getSQL()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaRecord

public MetaRecord(SearchRow r)
Method Detail

getId

public int getId()

getObjectType

public int getObjectType()

getSQL

public java.lang.String getSQL()

compareTo

public int compareTo(MetaRecord other)
Sort the list of meta records by 'create order'.

Specified by:
compareTo in interface java.lang.Comparable<MetaRecord>
Parameters:
other - the other record
Returns:
-1, 0, or 1