private long registerStatement ( long csid , Statement cs ) { if ( csid < 0 ) { csid = nextID ( ) ; int schemaid = cs . getSchemaName ( ) . hashCode ( ) ; LongValueHashMap sqlMap = ( LongValueHashMap ) schemaMap . get ( schemaid ) ; if ( sqlMap == null ) { sqlMap = new LongValueHashMap ( ) ; schemaMap . put ( schemaid , sqlMap ) ; } sqlMap . put ( cs . getSQL ( ) , csid ) ; sqlLookup . put ( csid , cs . getSQL ( ) ) ; } cs . setID ( csid ) ; csidMap . put ( csid , cs ) ; return csid ; }
Registers a compiled statement to be managed .