src/de/bezier/data/sql/SQL.java
public void registerTableNameForClass ( String name, Object classOrObject )
	{
		if ( name == null || name.equals("") || classOrObject == null ) return;

		Class klass = null;
		if ( classOrObject.getClass() != Class.class )
			klass = classOrObject.getClass();
		else
			klass = (Class)classOrObject;

		if ( classToTableMap == null )
			classToTableMap = new HashMap<Class,String>();

		classToTableMap.put( klass, name );
		if (DEBUG) System.out.println( String.format(
			"Class \"%s\" is now mapped to table \"%s\"", klass.getName(), name
		));
	}
/**
	 *	Set a table name for a class.
	 */
Set a table name for a class.
Set a table name for a class .
public void registerTableNameForClass ( String name, Object classOrObject )
	{
		if ( name == null || name.equals("") || classOrObject == null ) return;
		Class klass = null;
		if ( classOrObject.getClass() != Class.class )
			klass = classOrObject.getClass();
		else
			klass = (Class)classOrObject;
		if ( classToTableMap == null )
			classToTableMap = new HashMap<Class,String>();
		classToTableMap.put( klass, name );
		if (DEBUG) System.out.println( String.format(
			"Class \"%s\" is now mapped to table \"%s\"", klass.getName(), name
		));
	}
public void registerTableNameForClass ( String name , Object classOrObject ) { if ( name == null || name . equals ( "" ) || classOrObject == null ) return ; Class klass = null ; if ( classOrObject . getClass ( ) != Class . class ) klass = classOrObject . getClass ( ) ; else klass = ( Class ) classOrObject ; if ( classToTableMap == null ) classToTableMap = new HashMap < Class , String > ( ) ; classToTableMap . put ( klass , name ) ; if ( DEBUG ) System . out . println ( String . format ( "Class \"%s\" is now mapped to table \"%s\"" , klass . getName ( ) , name ) ) ; }
Set a table name for a class.
Set a table name for a class .