de.ispsoft.jaxme.generator.parserdata
Class JdbcTable

java.lang.Object
  extended byde.ispsoft.jaxme.generator.parserdata.JdbcTable
Direct Known Subclasses:
JdbcView

public class JdbcTable
extends java.lang.Object

Describes a table being mapped to the element.

Author:
Jochen Wiedmann

Constructor Summary
JdbcTable()
          Creates a new instance of JdbcTable
 
Method Summary
 void addListMethod(JdbcListMethod pListMethod)
          Adds a new list method to the array of list methods.
 boolean getCreateKeyPostInsert()
          Returns whether to create a key (if any) before the insert operation (false, default) or after the operation (true).
 java.lang.String getCreateKeyQuery()
          Returns an SQL query being used in insert operations to create a primary key.
 java.util.Map getJdbcKeys()
          Returns a map of primary key column names.
 JdbcListMethod[] getListMethods()
          Returns the array of list methods.
 java.lang.String getName()
          Returns the views name.
 void setCreateKeyPostInsert(boolean pPostInsert)
          Sets whether to create a key (if any) before the insert operation (false, default) or after the operation (true).
 void setCreateKeyQuery(java.lang.String pQuery)
          Sets an SQL query being used in insert operations to create a primary key.
 void setJdbcKeys(java.util.Map pKeys)
          Sets a map of primary key column names.
 void setName(java.lang.String pName)
          Sets the views name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JdbcTable

public JdbcTable()
Creates a new instance of JdbcTable

Method Detail

setName

public void setName(java.lang.String pName)

Sets the views name.


getName

public java.lang.String getName()

Returns the views name.


addListMethod

public void addListMethod(JdbcListMethod pListMethod)

Adds a new list method to the array of list methods.


getListMethods

public JdbcListMethod[] getListMethods()

Returns the array of list methods.


setJdbcKeys

public void setJdbcKeys(java.util.Map pKeys)

Sets a map of primary key column names. The map keys are the column names and the map values are Integers to be used for sorting the column names.


getJdbcKeys

public java.util.Map getJdbcKeys()

Returns a map of primary key column names. The map keys are the column names and the map values are Integers to be used for sorting the column names.


setCreateKeyQuery

public void setCreateKeyQuery(java.lang.String pQuery)

Sets an SQL query being used in insert operations to create a primary key.

Parameters:
pQuery - The query or null to disable key generation.

getCreateKeyQuery

public java.lang.String getCreateKeyQuery()

Returns an SQL query being used in insert operations to create a primary key.

Returns:
The query or null if key generation is disabled.

setCreateKeyPostInsert

public void setCreateKeyPostInsert(boolean pPostInsert)

Sets whether to create a key (if any) before the insert operation (false, default) or after the operation (true).


getCreateKeyPostInsert

public boolean getCreateKeyPostInsert()

Returns whether to create a key (if any) before the insert operation (false, default) or after the operation (true).