jrunx.persistence
Interface Constants

All Known Implementing Classes:
EJBContainerFactory, JDBCMappingsMetaData, JDBCStatement, JDBCStoreManager, GreylockStoreManager, PersistenceStoreFactory, GreylockMetaData, EntityMetaData, EntityMetaData, EJBContainerMetaData

public interface Constants

Constants file used by the Persistence package

Author:
Enrique Duvos

Field Summary
static java.lang.String CMP20_STORE_MANAGER
           
static java.lang.String CREATE_SQL
          The name of the property for specifying the SQL statement or stored procedure for "preparing" a create in the database.
static java.lang.String CREATE_TABLE_SQL
          The name of the property for specifying the SQL statement or stored procedure for creating a table in the database.
static int DEFAULT_CACHE_SIZE
           
static java.lang.String DELETE_TABLE_SQL
          The name of the property for specifying the SQL statement or stored procedure for deleting a table in the database.
static java.lang.String FILE_NAME
          File name used by file-based persistent stores
static java.lang.String FILE_STORE
           
static java.lang.String FIND_BY_PRIMARY_KEY_SQL
          The name of the property for specifying the SQL statement or stored procedure for finding a bean instance by primary key in the database.
static java.lang.String JDBC_STORE
           
static java.lang.String LOAD_SQL
          The name of the property for specifying the SQL statement or stored procedure for loading the bean instance from the database.
static java.lang.String REMOVE_SQL
          The name of the property for specifying the SQL statement or stored procedure for removing the object's representation from the database.
static java.lang.String STORE_SQL
          The name of the property for specifying the SQL statement or stored procedure for writing the bean instance to the database.
static java.lang.String TEMP_DIRECTORY
           
 

Field Detail

FILE_NAME

public static final java.lang.String FILE_NAME
File name used by file-based persistent stores

CREATE_SQL

public static final java.lang.String CREATE_SQL
The name of the property for specifying the SQL statement or stored procedure for "preparing" a create in the database. The SQL is used to verify the validity of the arguments and return the necessary results for creating a primary key. If the arguments are not valid, no results should be returned to signal CMP to throw a javax.ejb.CreateException. The SQL will be executed for every create call.

The value has to be a valid JDBC statement. JRun will convert the SQL into a prepared statement if it is not a stored procedure call.

Example: SELECT id FROM account WHERE name like ?


CREATE_TABLE_SQL

public static final java.lang.String CREATE_TABLE_SQL
The name of the property for specifying the SQL statement or stored procedure for creating a table in the database. The SQL will be executed only upon init.

The value has to be a valid JDBC statement. JRun will convert the SQL into a prepared statement if it is not a stored procedure call.

Example: CREATE TABLE account (id INT, name VARCHAR, value INT)


DELETE_TABLE_SQL

public static final java.lang.String DELETE_TABLE_SQL
The name of the property for specifying the SQL statement or stored procedure for deleting a table in the database. The SQL will be executed only upon init.

The value has to be a valid JDBC statement. JRun will convert the SQL into a prepared statement if it is not a stored procedure call.

Example: DROP TABLE account


REMOVE_SQL

public static final java.lang.String REMOVE_SQL
The name of the property for specifying the SQL statement or stored procedure for removing the object's representation from the database.

The value has to be a valid JDBC statement. JRun will convert the SQL into a prepared statement if it is not a stored procedure call.

Example: jrun.removeSQL=DELETE account WHERE id = ?


LOAD_SQL

public static final java.lang.String LOAD_SQL
The name of the property for specifying the SQL statement or stored procedure for loading the bean instance from the database.

The value has to be a valid JDBC statement. JRun will convert the SQL into a prepared statement if it is not a stored procedure call.

Example: SELECT value FROM account WHERE id = ?


STORE_SQL

public static final java.lang.String STORE_SQL
The name of the property for specifying the SQL statement or stored procedure for writing the bean instance to the database.

The value has to be a valid JDBC statement. JRun will convert the SQL into a prepared statement if it is not a stored procedure call.

Example: UPDATE account SET value = ? WHERE id = ?


FIND_BY_PRIMARY_KEY_SQL

public static final java.lang.String FIND_BY_PRIMARY_KEY_SQL
The name of the property for specifying the SQL statement or stored procedure for finding a bean instance by primary key in the database.

The value has to be a valid JDBC statement. JRun will convert the SQL into a prepared statement if it is not a stored procedure call.

Example: SELECT id FROM account WHERE id = ?


FILE_STORE

public static final java.lang.String FILE_STORE

JDBC_STORE

public static final java.lang.String JDBC_STORE

CMP20_STORE_MANAGER

public static final java.lang.String CMP20_STORE_MANAGER

TEMP_DIRECTORY

public static final java.lang.String TEMP_DIRECTORY

DEFAULT_CACHE_SIZE

public static final int DEFAULT_CACHE_SIZE


Copyright � 2002 Macromedia Corporation. All Rights Reserved.