org.rimudb
Class TableDescriptor

java.lang.Object
  extended by org.rimudb.TableDescriptor

public class TableDescriptor
extends java.lang.Object

This class associates a table with a DO Class, a finder and an optimistic locking strategy.

Author:
Simon Ritchie

Constructor Summary
TableDescriptor(java.lang.Class<? extends DataObject> dataObjectClass)
          Constructor for TableDescriptor.
 
Method Summary
 java.lang.Class<? extends DataObject> getDataObjectClass()
          Return the Data Object class.
 java.lang.String getDOClassName()
          Return the dataObject class name.
 AbstractFinder getFinder()
          Return the AbstractFinder.
 java.lang.String getFinderClassName()
          Return the Finder class name.
 OptimisticLocking getOptimisticLocking()
          Return the optimistic locking strategy.
 Table getTable()
          Return the Table.
 boolean isAutoIncrementDisabled()
           
 void setAutoIncrementDisabled(boolean autoIncrementDisabled)
           
 void setFinder(AbstractFinder finder)
          Set the AbstractFinder.
 void setOptimisticLocking(OptimisticLocking optimisticLocking)
          Set the optimistic locking strategy.
 void setTable(Table table)
          Set the Table.
 void setUseLockingHints(boolean useLockingHints)
          Specify whether locking hints should be used in the generated SQL.
 boolean useLockingHints()
          Return true if locking hints should be generated as part of the auto-generated SQL.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDescriptor

public TableDescriptor(java.lang.Class<? extends DataObject> dataObjectClass)
Constructor for TableDescriptor.

Method Detail

getDOClassName

public java.lang.String getDOClassName()
Return the dataObject class name.

Returns:
String

getFinderClassName

public java.lang.String getFinderClassName()
Return the Finder class name.

Returns:
String

getTable

public Table getTable()
Return the Table.

Returns:
Table

setTable

public void setTable(Table table)
Set the Table.

Parameters:
table - Table

getFinder

public AbstractFinder getFinder()
Return the AbstractFinder.

Returns:
AbstractFinder

getDataObjectClass

public java.lang.Class<? extends DataObject> getDataObjectClass()
Return the Data Object class.

Returns:
Class

useLockingHints

public boolean useLockingHints()
Return true if locking hints should be generated as part of the auto-generated SQL.

Returns:
boolean

setUseLockingHints

public void setUseLockingHints(boolean useLockingHints)
Specify whether locking hints should be used in the generated SQL.

Parameters:
useLockingHints - boolean

setFinder

public void setFinder(AbstractFinder finder)
Set the AbstractFinder.

Parameters:
finder - AbstractFinder

setOptimisticLocking

public void setOptimisticLocking(OptimisticLocking optimisticLocking)
Set the optimistic locking strategy.

Parameters:
optimisticLocking - OptimisticLocking

getOptimisticLocking

public OptimisticLocking getOptimisticLocking()
Return the optimistic locking strategy.

Returns:
OptimisticLocking

setAutoIncrementDisabled

public void setAutoIncrementDisabled(boolean autoIncrementDisabled)
Parameters:
autoIncrementDisabled - the autoIncrementDisabled to set

isAutoIncrementDisabled

public boolean isAutoIncrementDisabled()
Returns:
the autoIncrementDisabled


Copyright © 2008-2011 Simon Ritchie. All Rights Reserved.