forked from Coded/SIPRP
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.4 KiB
53 lines
1.4 KiB
package siprp.planoactuacao.print;
|
|
|
|
import siprp.planoactuacao.SingletonConstants;
|
|
|
|
import com.evolute.utils.Singleton;
|
|
import com.evolute.utils.db.DBManager;
|
|
import com.evolute.utils.db.Executer;
|
|
|
|
|
|
public class PlanoActuacaoPrintDataProvider
|
|
{
|
|
private static final Object LOCK = new Object();
|
|
private static PlanoActuacaoPrintDataProvider instance = null;
|
|
|
|
protected final Executer WEB_EXECUTER;
|
|
protected final Executer LOCAL_EXECUTER;
|
|
|
|
public PlanoActuacaoPrintDataProvider()
|
|
throws Exception
|
|
{
|
|
DBManager WEB_DBMANAGER = ( DBManager ) Singleton.getInstance( SingletonConstants.WEB_DBMANAGER );
|
|
WEB_EXECUTER = WEB_DBMANAGER.getSharedExecuter( this );
|
|
DBManager LOCAL_DBMANAGER = ( DBManager ) Singleton.getInstance( SingletonConstants.LOCAL_DBMANAGER );
|
|
LOCAL_EXECUTER = LOCAL_DBMANAGER.getSharedExecuter( this );
|
|
}
|
|
|
|
public static PlanoActuacaoPrintDataProvider getProvider()
|
|
throws Exception
|
|
{
|
|
synchronized( LOCK )
|
|
{
|
|
if( instance == null )
|
|
{
|
|
instance = new PlanoActuacaoPrintDataProvider();
|
|
}
|
|
}
|
|
return instance;
|
|
}
|
|
|
|
public PlanoActuacaoToPrint getPlanoToPrint( Integer id )
|
|
throws Exception
|
|
{
|
|
PlanoActuacaoToPrint plano = new PlanoActuacaoToPrint( null, null, null, null, null );
|
|
// Select select =
|
|
// new Select2(
|
|
// new String[]{ "planos_actuacao" },
|
|
// new Integer[]{},
|
|
// new Expression[]{},
|
|
// new String[]{ })
|
|
return plano;
|
|
}
|
|
}
|